jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1863384 - /jackrabbit/trunk/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
Date Fri, 19 Jul 2019 13:00:00 GMT
Author: reschke
Date: Fri Jul 19 13:00:00 2019
New Revision: 1863384

URL: http://svn.apache.org/viewvc?rev=1863384&view=rev
Log:
JCR-4460: allow to run remoted conformance tests with a custom servlet context path

Modified:
    jackrabbit/trunk/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java?rev=1863384&r1=1863383&r2=1863384&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2dav/src/test/java/org/apache/jackrabbit/jcr2dav/RepositoryStubImpl.java
Fri Jul 19 13:00:00 2019
@@ -76,7 +76,11 @@ public class RepositoryStubImpl extends
                     return repository;
                 }
             });
-            holder.setInitParameter(JCRWebdavServerServlet.INIT_PARAM_RESOURCE_PATH_PREFIX,
"");
+            String pathPrefix = WEBDAV_SERVLET_CONTEXT;
+            if (pathPrefix.endsWith("/")) {
+                pathPrefix = pathPrefix.substring(0,  pathPrefix.length() - 1);
+            }
+            holder.setInitParameter(JCRWebdavServerServlet.INIT_PARAM_RESOURCE_PATH_PREFIX,
pathPrefix);
             holder.setInitParameter(JCRWebdavServerServlet.INIT_PARAM_MISSING_AUTH_MAPPING,
"");
             holder.setInitParameter(JcrRemotingServlet.INIT_PARAM_PROTECTED_HANDLERS_CONFIG,
protectedRemoveImplClass);
 



Mime
View raw message