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

Burkhard Pauli commented on JCRVLT-582:
---------------------------------------

Hi [~kwin], I created a PR with the updated test case in
https://github.com/apache/jackrabbit-filevault/pull/198

This PR shows also a possible workaround. At the moment it's required to add a 
path mapping with mangled namespaces and without to get the node installed at 
the mapped location.

> Package import fails for namespaced paths and path mapping
> ----------------------------------------------------------
>
>                 Key: JCRVLT-582
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-582
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.5.8
>            Reporter: Jean-Christophe Kautzmann
>            Priority: Major
>         Attachments: sites-3957.log
>
>
> Package import fails to import nodes when used as follows:
> * the package contains namespaced paths (e.g. {{/content/_cq_tags/src}})
> * regex path mapping are defined to map {{/content/cq:tags/src}} to 
> {{/content/cq:tags/dest}}
> {code}
> RegexpPathMapping pathMapping = new RegexpPathMapping();
> for (String path : sitePaths.keySet()) {
>     pathMapping.addMapping(path + "(/.*)?", sitePaths.get(path) + "$1");
> }
> ImportOptions options = new ImportOptions();
> options.setPathMapping(pathMapping);
> jcrPackage.install(options);
> {code}
>  Result: nodes below {{/content/cq:tags}} are not created.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to