What's new in EzyPlatform 1.5.9?
This release focuses on simpler Role checks for Admins and Users, more reliable language resolution on fresh installations, and a more stable startup for Docker deployments and new plugin projects.
-
Added APIs to check whether an Admin or User has any of the given RolesAdded
AdminRoleService.hasAnyRoleName(adminId, roleNames)andUserRoleService.hasAnyRoleName(userId, roleNames), backed by the new repository methodsAdminRoleRepository.findIdByAdminIdAndRoleNameIn()andUserRoleRepository.findIdByUserIdAndRoleNameIn(). The methods returntruewhen the Admin or User holds at least one of the Role names andfalsefor anullor empty list. Plugins can now check Permission by Role name with a single query instead of loading every Role first. -
Fixed language resolution when no default language is configured
RequestLocalFetcher.getLocal()now returnsLocale.ROOTwhen the request has nolangvalue and the default language of Admin or Web is not set or blank. Previously this case caused an error, so the Admin/api/v1/messagesAPI and Web plugin APIs built onWebMessageControllerServicefailed on fresh installations. These APIs now return the default messages, whilelangfrom the query parameter, header or cookie still selects the matching language. -
Improved the Docker startup orderThe Docker entrypoint now waits until Admin accepts connections on its port (read from
server.portinadmin/settings/config.properties,9090by default) before starting Web. The wait time can be configured withEZY_ADMIN_READY_TIMEOUT(600seconds by default); Web is still started if Admin is not ready in time. The standalone Docker Compose file now uses the MariaDB driverorg.mariadb.jdbc.Driverby default, matching the platform's own setup. -
Improved the SDK project templateThe generated
Admin{Project}ViewDecoratornow adds the plugin's CSS only when the request has anAdminIdattribute, so the login, 2FA and setup pages no longer request plugin files that need authentication. The template also uses socket monitor0.0.3and is shipped with SDK0.2.7.