v2.106.0
Release Date: 09/03/2024
Overview
In this release, changes are made to SharedItems, the UrlContext, the Files-API and the Text Editor markup. This enables entities to be reliably shared via SharedItem links.
In addition, changes will be made to enable new features in the future.
SharedItems
In future, SharedItems will always require a targetable entity and redirect to the URL of this entity. The sharing is enabled by a grant token, which is appended to the URL during forwarding.
The following changes also apply:
The
idcolumn is renamed touuid.The
generictype is removed.The
targetable_typeandtargetable_idfields are now mandatory when creating aSharedItem.The
authorization_typecolumn is renamed toredirect_type.New types:
none-> Prevents the user from being redirected to thetargetableURL.redirect-> Redirects to thetargetableURL without grant token. This means that there is no sharing and only the permissions of the entity are taken into account.redirectWithGrantToken-> Redirects to thetargetableURL with grant token. The token grants access if the user does not have the entity's permissions.
Migration of the old types to the new:
none->nonepublic->redirectWithGrantToken.targetable->redirect.authorizedFor->redirectWithGrantToken.entityPermissions->redirectWithGrantToken.
The
authorized_for_typeandauthorized_for_idcolumns are omitted and thus also theauthorizedForrelation, as these are no longer needed.When redirecting to the
targetableURL, asharedItemURL parameter is appended which has theuuidof theSharedItemas its value in order to be able to trace whichSharedItemwas used for the redirection.The
Create,UpdateandDeleteactions are moved to the/api/administration/scope. There are also newListandShowactions in the/api/administration/scope which follow the administration permissions.
UrlContext
The UrlContext gets a new internal type to be able to identify internal URLs and output the context for them. There will also be a new fileContentEntity type to get context for file content URLs for FilemanagerFiles and ChatFiles.
For the linkableEntity type, the id is now output in addition to the type in the data key.
The sharedItem type now outputs the targetable_type, targetable_id, and targetable_deleted values in the data key.
Files-API
In future, the Files-API will always check the permissions of the requested file. This was not done previously, as the file path was given in encrypted form and the file was therefore shared.
For sharing files, only SharedItems should be used in the future.
It will also be possible to retrieve a file using its id or hash via the following API route:
GET /files/{idOrHash}
Text Editor Markup
Show UrlContext for links
UrlContext for linksThe data-show-url-context attribute for links is converted from a boolean value to string based types. The following types are then available:
inline-> Outputs the information about the URL in continuous text.card-> Provides detailed information about the URL in a block element.
If the data-show-url-context is not present, the link is displayed as normal.
Affected Entities
You can find an overview of all affected entities and fields with RTE content here.
Last updated