[jira] [Comment Edited] (JCRVLT-793) Error when importing group: Invalid child node with type null

2025-01-17 Thread Konrad Windszus (Jira)


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

Konrad Windszus edited comment on JCRVLT-793 at 1/17/25 2:25 PM:
-

There is a known issue with not correctly considering filter rules for ACLs 
(tracked in JCRVLT-522) I think this is what you see here.


was (Author: kwin):
There is a known issue with not correctly considering ACLs (tracked in 
JCRVLT-522) I think this is what you see here.

> 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)


[jira] [Comment Edited] (JCRVLT-793) Error when importing group: Invalid child node with type null

2025-01-17 Thread Christian Schneider (Jira)


[ 
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}
...




  
...{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  Elment at all.
Is that epectation wrong?


was (Author: [email protected]):
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}
...




  
...{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  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)


[jira] [Comment Edited] (JCRVLT-793) Error when importing group: Invalid child node with type null

2025-01-17 Thread Christian Schneider (Jira)


[ 
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}
...




  
...{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  Elment at all.
Is that expectation wrong?


was (Author: [email protected]):
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}
...




  
...{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  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)