jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Speck" <marcsp...@gmail.com>
Subject Re: Secured reverse proxy for WebDav
Date Fri, 21 Nov 2008 08:09:21 GMT
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();
     }

     /**


Though why is there the scheme and host in there? I'm somewhat puzzled...
Marc




On Mon, Nov 17, 2008 at 6:44 PM, Julian Reschke <julian.reschke@gmx.de>wrote:

> Marc Speck wrote:
>
>> Julian, thanks for your answers. I might have written my answer in an
>> unclear way but I interpret "Absolute paths are fine." as absolute URLs
>> like
>> http://myvirtualhost.example.org/dav/wsp/mynode should be used in the
>> content of a response. This means that the scheme and the host need to be
>>
>
> No, that's an absolute URI. That works of course, but the absolute *path*
>
>  /dav/wsp/mynode
>
> is fine as well.
>
>  ...
>>
>
> BR, Julian
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message