What's new in EzyPlatform 1.5.8?
This release focuses on better support for multi-server deployments, new Admin APIs and SSO tickets for external apps, and a safer, more customizable letter inbox.
-
Added per-server URL settingsThe Admin, Web and WebSocket settings pages now have a "URL of this server" field next to the shared URL. The values are saved to the server's own
config.propertiesasserver.admin_url,server.web_url, andserver.websocket_url, and can be read withgetCurrentAdminServerUrl(),getCurrentWebServerUrl(), andgetCurrentServerWebSocketUrl(), which fall back to the shared URL when left blank. This lets each server behind a load balancer call itself directly while users keep using the public domain. -
Added server IP and server name settingsAdded
PUT /api/v1/settings/serverand a matching section in Regular Settings to save the IP and name of the current server tosettings/server.properties. Admin, Web and Socket load this file at startup asserver.ipandserver.name, and the newserver_properties_updatedEvent is fired withserverIpandserverNameafter each change, so plugins can identify which server they are running on. -
Added Market SSO tickets for external appsAdded
POST /api/v1/market/sso-tickets, which takes amarketUrl, a localport, and astate, and returns a one-time ticket. Opening/market/sso-tickets/{ticket}in a browser starts the Market login, and the Market Access Token is then returned tohttp://127.0.0.1:{port}/callback. Tickets are random, single-use and short-lived, andGET /api/v1/market-urlslists the Market URLs an app can choose from. -
Added one-time login tickets for AdminAdded
POST /api/v1/admins/me/login-tickets, which returns a ticket for the logged-in Admin, and/login-tickets/{ticket}, which logs the browser in with that ticket. A ticket is valid for 60 seconds, can only be used once, and is rejected if its Access Token is no longer valid or belongs to another Admin. This allows apps that already hold an Admin Access Token to open the Admin UI without asking the user to log in again. -
Added new Admin APIsAdded
GET /api/v1/admins/meto get the current Admin's information,GET /api/v1/admins/me/letters/{letterId}to get the details of a letter,GET /api/v1/admin-languagesto list Admin languages with their localized names, flags and text directions, andGET /api/v1/targets/statusto check whether Web and Socket are enabled. These APIs make it easier to build apps and plugins on top of Admin without parsing HTML pages. -
Added Events to customize the Admin inboxAdded the
letters_view_decorator,letter_view_decorator,letters_decorator, andletter_details_decoratorEvents to decorate the inbox pages and the letter API responses. Letter responses now provideaddAdditionalProperty()andaddAdditionalProperties(), so plugins can attach their own data to letters, such as actions or links related to the letter type. -
Improved letter display safetyHTML letters are now displayed in a sandboxed frame with a strict Content Security Policy, so scripts in letter content cannot run and links are opened safely in a new tab. The inbox list removes HTML tags from titles and content and escapes sender names, and text letters keep their line breaks. Letters also display correctly in right-to-left languages.
-
Added sort order to letter, notification and activity APIsThe letter and notification APIs of both Admin and Web, and the Admin activity history APIs, now accept a
sortOrderparameter. This allows applications to choose how the pagination results are sorted instead of always using the default order. -
Extended MediaUpDownloader with file deletion
MediaUpDownloadernow hasisDeleteSupported()anddelete(MediaDeleteArguments), andMediaControllerServicehas a newdeleteMediaFile(...)method that uses them. Media stored on external storage is now deleted from that storage, and the file size falls back to the stored value when the file is not on the local disk.MediaDownloadArgumentsalso provides therequestedNameandMediaFileSizeReductionArgumentsprovides themedia. -
Improved settings guidance and updated librariesAdmin settings pages now show a short guide under properties, VM options, SSL and media options, and checkboxes have a consistent look in both left-to-right and right-to-left languages. EzyPlatform now uses ezyhttp 1.6.6, and the bundled socket-monitor plugin has been updated to 0.0.3, which no longer ships the JAXB libraries and makes the package smaller.