Marc Speck wrote:
Oh, ok. So you are saying that the following should work?
>
Index: jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java =================================================================== --- jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java (revision 712647) +++ jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/WebdavRequestImpl.java (working copy) @@ -108,9 +108,7 @@ this.factory = factory; this.ifHeader = new IfHeader(httpRequest);- String host = getHeader("Host"); - String scheme = getScheme(); - hrefPrefix = scheme + "://" + host + getContextPath(); + hrefPrefix = getContextPath(); } /**
Depends on where exactly hrefPrefix is used, of course. So in theory: yes.
Though why is there the scheme and host in there? I'm somewhat puzzled...
Because somebody just looked at examples, and didn't read the spec carefully (as it frequently happens).
Several WebDAV implementations already do return just the path (IMHO Apache moddav for instance), so clients have had to accept that for a long time.
BR, Julian
