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.
  1. Added per-server URL settings
    The 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.properties as server.admin_url, server.web_url, and server.websocket_url, and can be read with getCurrentAdminServerUrl(), getCurrentWebServerUrl(), and getCurrentServerWebSocketUrl(), 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.
  2. Added server IP and server name settings
    Added PUT /api/v1/settings/server and a matching section in Regular Settings to save the IP and name of the current server to settings/server.properties. Admin, Web and Socket load this file at startup as server.ip and server.name, and the new server_properties_updated Event is fired with serverIp and serverName after each change, so plugins can identify which server they are running on.
  3. Added Market SSO tickets for external apps
    Added POST /api/v1/market/sso-tickets, which takes a marketUrl, a local port, and a state, 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 to http://127.0.0.1:{port}/callback. Tickets are random, single-use and short-lived, and GET /api/v1/market-urls lists the Market URLs an app can choose from.
  4. Added one-time login tickets for Admin
    Added 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.
  5. Added new Admin APIs
    Added GET /api/v1/admins/me to get the current Admin's information, GET /api/v1/admins/me/letters/{letterId} to get the details of a letter, GET /api/v1/admin-languages to list Admin languages with their localized names, flags and text directions, and GET /api/v1/targets/status to 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.
  6. Added Events to customize the Admin inbox
    Added the letters_view_decorator, letter_view_decorator, letters_decorator, and letter_details_decorator Events to decorate the inbox pages and the letter API responses. Letter responses now provide addAdditionalProperty() and addAdditionalProperties(), so plugins can attach their own data to letters, such as actions or links related to the letter type.
  7. Improved letter display safety
    HTML 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.
  8. Added sort order to letter, notification and activity APIs
    The letter and notification APIs of both Admin and Web, and the Admin activity history APIs, now accept a sortOrder parameter. This allows applications to choose how the pagination results are sorted instead of always using the default order.
  9. Extended MediaUpDownloader with file deletion
    MediaUpDownloader now has isDeleteSupported() and delete(MediaDeleteArguments), and MediaControllerService has a new deleteMediaFile(...) 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. MediaDownloadArguments also provides the requestedName and MediaFileSizeReductionArguments provides the media.
  10. Improved settings guidance and updated libraries
    Admin 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.