SenseNet / sensenet

Open Source Content Services Platform written in .NET
https://sensenet.com
GNU General Public License v2.0
173 stars 112 forks source link

Permission error when importing with public admin #1867

Closed tusmester closed 1 year ago

tusmester commented 1 year ago

When we try to import files to https://daily.test.sensenet.cloud in the name of the public admin user, we receive a permission error:

Invalid property access attempt on a See-only node: /Root

This is caused by the Folder.IsPreviewEnabled property that tries to access the parent.

public virtual bool IsPreviewEnabled => Parent?.IsPreviewEnabled ?? false;

Check and solve this (probably with elevation) in one or both of the following places:

Add property name info to the trace message above.

kavics commented 1 year ago

The merged modification does not fix the basic problem. See also: #1861