[ https://issues.apache.org/jira/browse/SLING-7017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi updated SLING-7017: ---------------------------------- Attachment: SLING-7017.1.patch Hi there [~teofili], please have a look at the initial prototype in the patch: A new {{mountPatterns}} property has been defined in the {{ForwardDistributionAgentFactory}} where users can specify mapping patterns of the type {{/etc/(.*)=/dummy/$1/custom}} using regular expressions and these values are sent via HTTP in a new {{Path-Mapping}} Header to the {{DistributionPackageImporterServlet}} which takes care of import the package... At that point I need your help since I don't know how to inject the {{org.apache.jackrabbit.vault.fs.io.ImportOptions}}, since everything is managed by the {{DistributionPackageImporter}}, obtained by the {{SlingHttpServletRequest#getResource().adaptTo(DistributionPackageImporter.class)}} method... Any hint will be much more than appreciated, many thanks in advance! :) > Make it possible to mount packages at different paths > ----------------------------------------------------- > > Key: SLING-7017 > URL: https://issues.apache.org/jira/browse/SLING-7017 > Project: Sling > Issue Type: Improvement > Components: Content Distribution > Reporter: Tommaso Teofili > Assignee: Simone Tripodi > Fix For: Content Distribution Core 0.2.10 > > Attachments: SLING-7017.1.patch > > > In some scenarios (e.g. multi tenant instances) it may be useful to be able > to mount packages at configurable paths. > For example mounting a package for _/foo/bar/_ at _/tenant1/foo/bar_; we can > leverage FileVault [configuration > options|https://github.com/apache/jackrabbit-filevault/blob/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/ExportOptions.java#L126] > to support that. -- This message was sent by Atlassian JIRA (v6.4.14#64029)