jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: Secured reverse proxy for WebDav
Date Fri, 21 Nov 2008 08:22:21 GMT
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

Mime
View raw message