You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export a node with custom permissions
=> The node is exported correctly
Delete and import the export
=> The node is imported but with incorrect permissions.
Focusing on the existing node import capability (NodeImporter and all the chain up), not the new import content.
Solution 1: includePermissions should have been used for both creation/update and there was a bug in previous versions (that sounds reasonable that update and create should behave the same way)
Use the value of includePermissions to set importPermissionsOnCreate in NodeImporter
Solution 2: Strict backward compatibility
Set com.enonic.xp.node.ImportNodeParams.Builder.importPermissionsOnCreate to true by default
Solution 3: Breaking change with new parameter importPermissionsOnCreate
Add a new parameter importPermissionsOnCreate all the way up to the ExportService and the rest API (+Adapt clients of the related APIs)
The text was updated successfully, but these errors were encountered:
GlennRicaud
changed the title
ExportService - ImportNodes - Permissions not imported
Node Import - Permissions not imported
Apr 3, 2021
Bug present in version 7.6.0 and 7.6.1.
=> The node is exported correctly
=> The node is imported but with incorrect permissions.
Focusing on the existing node import capability (NodeImporter and all the chain up), not the new import content.
Solution 1:
includePermissions
should have been used for both creation/update and there was a bug in previous versions (that sounds reasonable that update and create should behave the same way)Use the value of
includePermissions
to setimportPermissionsOnCreate
in NodeImporterSolution 2: Strict backward compatibility
Set com.enonic.xp.node.ImportNodeParams.Builder.importPermissionsOnCreate to true by default
Solution 3: Breaking change with new parameter
importPermissionsOnCreate
Add a new parameter
importPermissionsOnCreate
all the way up to the ExportService and the rest API (+Adapt clients of the related APIs)The text was updated successfully, but these errors were encountered: