Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 23453 invoked from network); 21 Nov 2008 08:23:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2008 08:23:56 -0000 Received: (qmail 60028 invoked by uid 500); 21 Nov 2008 08:24:03 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 60017 invoked by uid 500); 21 Nov 2008 08:24:03 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 60006 invoked by uid 99); 21 Nov 2008 08:24:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 00:24:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of julian.reschke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 21 Nov 2008 08:22:39 +0000 Received: (qmail invoked by alias); 21 Nov 2008 08:22:22 -0000 Received: from p508FD239.dip.t-dialin.net (EHLO [192.168.178.22]) [80.143.210.57] by mail.gmx.net (mp022) with SMTP; 21 Nov 2008 09:22:22 +0100 X-Authenticated: #1915285 X-Provags-ID: V01U2FsdGVkX18GUdhlNbEGKfbPdrUxNpWZu6eXkGUAtHWqVydSgQ rQRPG7IQRzP0Ze Message-ID: <49266FBD.1050409@gmx.de> Date: Fri, 21 Nov 2008 09:22:21 +0100 From: Julian Reschke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Secured reverse proxy for WebDav References: <6aaad09c0811130221l1b9eb6e3gbb6caa7ba2bf15@mail.gmail.com> <491C6695.1030206@gmx.de> <6aaad09c0811132353v2f0f01c1h9788fec9c3c16169@mail.gmail.com> <491D9985.3030506@gmx.de> <6aaad09c0811140752l658a6d7axed0c3a34050f8575@mail.gmail.com> <491DD8AF.1040805@gmx.de> <6aaad09c0811170038sc92d63v98ab84078495d53c@mail.gmail.com> <4921AD66.80904@gmx.de> <6aaad09c0811210009td89da60nbf6c1067897a54e9@mail.gmail.com> In-Reply-To: <6aaad09c0811210009td89da60nbf6c1067897a54e9@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 X-Virus-Checked: Checked by ClamAV on apache.org 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