[ 
https://issues.apache.org/jira/browse/OAK-8518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

angela resolved OAK-8518.
-------------------------
       Resolution: Fixed
    Fix Version/s: 1.18.0

Committed revision 1864003.


> PrincipalPolicyImporter: handle rep:effectivePath generated by xml-export for 
> repository level
> ----------------------------------------------------------------------------------------------
>
>                 Key: OAK-8518
>                 URL: https://issues.apache.org/jira/browse/OAK-8518
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: authorization-principalbased
>    Affects Versions: 1.18.0
>            Reporter: angela
>            Assignee: angela
>            Priority: Major
>             Fix For: 1.18.0
>
>
> the property storing the {{rep:effectivePath}} is defined to be of type PATH. 
> due to the fact that {{NamePathMapperImpl#getJcrName(String)}} converts an 
> empty oak path to the current path element ("."), any XML roundtrip (i.e. 
> xml-export followed by xml-import) will fail to properly handle 
> principal-entries for the repository level (i.e. null path that gets stored 
> as empty string).
> The fix should be straight forward by adjusting the 
> {{PrincipalPolicyImporter}} such that reading the {{rep:effectivePath}} 
> propInfo (or the {{rep:nodePath}} restriction) adjust the string value 
> accordingly.
> [~stillalex], fyi



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to