Hi Angela,
thanks for the explanation. I tried to set the best-effort option as you
suggested, but I can't make it work.
When i try to set the privileges using the method "AccessControlUtils.allow"
i get the error:
"javax.jcr.security.AccessControlException: Invalid principal null"
Here my repository settings:
Properties authzProps = new Properties();
authzProps.put(ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR,
ImportBehavior.NAME_BESTEFFORT);
Properties userProps = new Properties();
userProps.put(ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR,
ImportBehavior.NAME_BESTEFFORT);
Properties securityProps = new Properties();
securityProps.put(UserConfiguration.NAME,
ConfigurationParameters.of(userProps));
securityProps.put(AuthorizationConfiguration.NAME,
ConfigurationParameters.of(authzProps));
ConfigurationParameters defaultConfigurationParameters =
ConfigurationParameters.of(securityProps);
File repositoryFile = new File("tmp", REPOSITORY);
File dataStoreFile = new File("tmp", DATASTORE);
BlobStore blobStore = new FileBlobStore(dataStoreFile.getAbsolutePath());
FileStore repositoryStore =
FileStore.newFileStore(repositoryFile).withBlobStore(blobStore).create();
NodeStore nodeStore =
SegmentNodeStore.newSegmentNodeStore(repositoryStore).create();
Jcr jcr = new Jcr(nodeStore).with(new
SecurityProviderImpl(defaultConfigurationParameters));
repository = jcr.createRepository();
What am I doing wrong?
Marco.
--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/non-administrator-user-how-to-grant-permission-on-folder-tp4663773p4663787.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.