[
https://issues.apache.org/jira/browse/JCRVLT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17475970#comment-17475970
]
Tobias Bocanegra commented on JCRVLT-582:
-----------------------------------------
yes, this was always a bit a best effort. to avoid having access to a session
and to speed up the archive. a better approximation would be to make repo paths
of the filenames before applying the path mapping.
> 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)