[ https://issues.apache.org/jira/browse/JCRVLT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17475450#comment-17475450 ]
Konrad Windszus commented on JCRVLT-582: ---------------------------------------- {{RegexpPathMapping.map(String path)}} is called twice: # from {{DefaultWorkspaceFilter.translate(...)}} # from {{MappedArchive.applyMapping(...)}} currently the former applies uses unescaped node names, while the latter uses namespace mangling (as it is acting on file names) > 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)