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.
  1. Added APIs to check whether an Admin or User has any of the given Roles
    Added AdminRoleService.hasAnyRoleName(adminId, roleNames) and UserRoleService.hasAnyRoleName(userId, roleNames), backed by the new repository methods AdminRoleRepository.findIdByAdminIdAndRoleNameIn() and UserRoleRepository.findIdByUserIdAndRoleNameIn(). The methods return true when the Admin or User holds at least one of the Role names and false for a null or empty list. Plugins can now check Permission by Role name with a single query instead of loading every Role first.
  2. Fixed language resolution when no default language is configured
    RequestLocalFetcher.getLocal() now returns Locale.ROOT when the request has no lang value and the default language of Admin or Web is not set or blank. Previously this case caused an error, so the Admin /api/v1/messages API and Web plugin APIs built on WebMessageControllerService failed on fresh installations. These APIs now return the default messages, while lang from the query parameter, header or cookie still selects the matching language.
  3. Improved the Docker startup order
    The Docker entrypoint now waits until Admin accepts connections on its port (read from server.port in admin/settings/config.properties, 9090 by default) before starting Web. The wait time can be configured with EZY_ADMIN_READY_TIMEOUT (600 seconds by default); Web is still started if Admin is not ready in time. The standalone Docker Compose file now uses the MariaDB driver org.mariadb.jdbc.Driver by default, matching the platform's own setup.
  4. Improved the SDK project template
    The generated Admin{Project}ViewDecorator now adds the plugin's CSS only when the request has an AdminId attribute, so the login, 2FA and setup pages no longer request plugin files that need authentication. The template also uses socket monitor 0.0.3 and is shipped with SDK 0.2.7.