SenseNet / sn-io

Import and export features and tools for the sensenet repository.
GNU General Public License v2.0
0 stars 0 forks source link

Import fails on read only fields #31

Closed VargaJoe closed 1 year ago

VargaJoe commented 1 year ago

With Public Admin, Import of previously exported contents fail with the following message: Cannot write the CreationDate property because it is read only.

If CreationDate is removed from json, same error message shows with VersionCreationDate.

Cause

Currently only the members of the Operators group can modify these fields.

Solution

All these fixes are ment to be done on the server.

  1. ~add the public administrators group as a member of Operators (same way as built-in admins)~
  2. ~allow public admins in code (same way as Operators)~
  3. ~let everybody set these properties~
  4. skip setting these properties on the server during import instead of throwing error