You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2019/06/26 08:50:00 UTC

[jira] [Created] (SLING-8535) RepoInit register privilege fails if privilege already exists

Karl Pauls created SLING-8535:
---------------------------------

             Summary: RepoInit register privilege fails if privilege already exists
                 Key: SLING-8535
                 URL: https://issues.apache.org/jira/browse/SLING-8535
             Project: Sling
          Issue Type: Bug
          Components: Repoinit
    Affects Versions: Repoinit JCR 1.1.10
            Reporter: Karl Pauls
            Assignee: Karl Pauls
             Fix For: Repoinit JCR 1.1.12


The PrivilegeVisitor does assume that a registerPriv does work if the priv is already defined. That is wrong as at least currently, it throws an implementation specific exception. We need to check if the priv exists first as a consequence as repoinit needs to be idempotent. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)