[ 
https://issues.apache.org/jira/browse/JCRVLT-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914124#comment-17914124
 ] 

Christian Schneider edited comment on JCRVLT-793 at 1/17/25 2:16 PM:
---------------------------------------------------------------------

I would not have expected the package to contain the full structure below the 
group but I would have expected the export to be valid.

The broken package contains this:
{code:java}
...
<XNeKS5N6lqU1hm10leOU
  rep:members="{WeakReference}[...]"
  rep:principalName="aaa">
    <rep:policy jcr:primaryType="rep:ACL">
        <allow/>
    </rep:policy>
</XNeKS5N6lqU1hm10leOU>  
...{code}
As you see there is an allow element without any properties. When this is 
applied the importing code complains.

With the above filter
.*/rep:policy
I would expect that there is no <allow/> Elment at all.
Is that epectation wrong?


was (Author: ch...@die-schneider.net):
I would not have expected the package to contain the full structure below the 
group but I would have expected the export to be valid.

The broken package contains this:
{code:java}
...
<XNeKS5N6lqU1hm10leOU
  rep:members="{WeakReference}[...]"
  rep:principalName="aaa">
    <rep:policy jcr:primaryType="rep:ACL">
        <allow/>
    </rep:policy>
</XNeKS5N6lqU1hm10leOU>  
...{code}
As you see there is an allow element without any properties. When this is 
applied the importing code complains.

With the above filter
.*/rep:policy
I would expeted that there is no <allow/> Elment at all.
Is that epectation wrong?

> Error when importing group: Invalid child node with type null
> -------------------------------------------------------------
>
>                 Key: JCRVLT-793
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-793
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>            Reporter: Christian Schneider
>            Priority: Major
>
> We identified an error when exporting / importing a group in sling 
> distribution.
> The error is related to filter settings used in AEM but it is reproducible in 
> a filevault integration test.
> Filter settings:
>  
> {code:java}
> pathFilterSet.addInclude(new DefaultPathFilter("/\\Q" + path.substring(1) + 
> "\\E");
> pathFilterSet.addInclude(new DefaultPathFilter(".*/rep:policy")); {code}
> Error:
> {noformat}
> Caused by: org.xml.sax.SAXException: 
> javax.jcr.nodetype.ConstraintViolationException: Invalid child node with type 
> null       at 
> org.apache.jackrabbit.oak.jcr.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:92)
>      at 
> org.apache.jackrabbit.oak.jcr.xml.SysViewImportHandler.endElement(SysViewImportHandler.java:221)
>      at 
> org.apache.jackrabbit.oak.jcr.xml.ImportHandler.endElement(ImportHandler.java:197)
>    at 
> org.apache.jackrabbit.vault.fs.impl.io.JcrSysViewTransformer.endNode(JcrSysViewTransformer.java:273)
>  ... 60 common frames omittedCaused by: 
> javax.jcr.nodetype.ConstraintViolationException: Invalid child node with type 
> null       at 
> org.apache.jackrabbit.oak.security.authorization.accesscontrol.AccessControlImporter.startChildInfo(AccessControlImporter.java:170)
>   at 
> org.apache.jackrabbit.oak.jcr.xml.ImporterImpl.startNode(ImporterImpl.java:375)
>       at 
> org.apache.jackrabbit.oak.jcr.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:81)
>      ... 63 common frames omitted{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to