[
https://issues.apache.org/jira/browse/JCR-4460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16893809#comment-16893809
]
Julian Reschke commented on JCR-4460:
-------------------------------------
[~fmeschbe] - I looked at
<https://github.com/apache/sling-org-apache-sling-jcr-webdav/blob/master/src/main/java/org/apache/sling/jcr/webdav/impl/helper/SlingResourceConfig.java#L92>
- it seems that the init parameter is populated from a variable called
{{servletContextPath}} (sic!), which in turn is derived from an OSGI config
property
(<https://github.com/apache/sling-org-apache-sling-jcr-webdav/blob/master/src/main/java/org/apache/sling/jcr/webdav/impl/servlets/SlingWebDavServlet.java#L89>).
I believe we should try to let Jackrabbit use the servlet context path when the
init param is not set. That would be [^use-context-path.diff] - [~woon_san]
did you try whether that would work for jackrabbit-boot once you remove setting
the init param?
> allow to run remoted conformance tests with a custom servlet context path
> -------------------------------------------------------------------------
>
> Key: JCR-4460
> URL: https://issues.apache.org/jira/browse/JCR-4460
> Project: Jackrabbit Content Repository
> Issue Type: Task
> Components: jackrabbit-jcr2dav
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Priority: Minor
> Labels: candidate_jcr_2_16
> Fix For: 2.20, 2.19.4, 2.18.3
>
> Attachments: use-context-path.diff
>
>
> Add a system property that selects a servlet context path for testing.
> To run tests with non-root path:
> {noformat}
> mvn clean install -PintegrationTesting -DWebDAVServletContext="/foobar/"
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)