[
https://issues.apache.org/jira/browse/OAK-8518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Reschke closed OAK-8518.
-------------------------------
> 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 Schreiber
> Assignee: Angela Schreiber
> 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
(v8.3.4#803005)