Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JCR-1873 It should be possible to define how hrefs are generated for …

…WebDav

Stick to absolute URIs as the default.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1439797 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 90b78a68ab6cf3fd710806d94a35042008a93818 1 parent 5a0f962
@jukka jukka authored
View
5 jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/server/AbstractWebdavServlet.java
@@ -174,7 +174,10 @@ public void init() throws ServletException {
log.info(INIT_PARAM_CSRF_PROTECTION + " = " + csrfParam);
//create absolute URI hrefs..
- createAbsoluteURI = Boolean.parseBoolean(getInitParameter(INIT_PARAM_CREATE_ABSOLUTE_URI));
+ String param = getInitParameter(INIT_PARAM_CREATE_ABSOLUTE_URI);
+ if (param != null) {
+ createAbsoluteURI = Boolean.parseBoolean(param);
+ }
log.info(INIT_PARAM_CREATE_ABSOLUTE_URI + " = " + createAbsoluteURI);
}
Please sign in to comment.
Something went wrong with that request. Please try again.