Angela Schreiber created SLING-9091:
---------------------------------------
Summary: Principal-based AC-setup fails for transient service users
Key: SLING-9091
URL: https://issues.apache.org/jira/browse/SLING-9091
Project: Sling
Issue Type: Bug
Components: Repoinit
Reporter: Angela Schreiber
Assignee: Angela Schreiber
while conducting additional tests with repo-init i noticed that
{{TestUtil.parseAndExecute}} always persists a given operation, which doesn't
entirely seem to reflect that nature of the {{RepositoryInitializer}} which
will only call {{Session.save}} after the processing of a list of operations.
While each create-path operation is already following by a save-call to prevent
issues with the resource-based access control setup, the principal-based
ac-setup will currently fail if the service user principal has not been
persisted.
Proposed fix: if the principal-lookup returns {{null}} during principal-based
ac setup -> retry after saving pending changes. That's at least consistent with
the current behaviour in the resource-based setup.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)