From jackrabbit-dev-return-4678-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Fri Dec 02 10:43:54 2005 Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 60398 invoked from network); 2 Dec 2005 10:43:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Dec 2005 10:43:54 -0000 Received: (qmail 67670 invoked by uid 500); 2 Dec 2005 10:43:53 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 67653 invoked by uid 99); 2 Dec 2005 10:43:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 02:43:53 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4C06BDE for ; Fri, 2 Dec 2005 11:43:32 +0100 (CET) Message-ID: <1108553641.1133520212309.JavaMail.jira@ajax.apache.org> Date: Fri, 2 Dec 2005 11:43:32 +0100 (CET) From: "angela (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Assigned: (JCR-286) Error in jcr-server Webdav HTTP header - DAV Explorer won't log in In-Reply-To: <1036947359.1133519191405.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-286?page=all ] angela reassigned JCR-286: -------------------------- Assign To: angela > Error in jcr-server Webdav HTTP header - DAV Explorer won't log in > ------------------------------------------------------------------ > > Key: JCR-286 > URL: http://issues.apache.org/jira/browse/JCR-286 > Project: Jackrabbit > Type: Bug > Reporter: Peter Darton > Assignee: angela > Priority: Minor > > At present, DAV Explorer won't log in to the JCR WebDav servlet - it doesn't even ask for a username & password. (Neither the Microsoft WinXP WebDAV & Novell's NetDrive were as fussy and were happy to log in) > Using Ethereal, I compared the traffic for a valid Slide WebDav login compared to a JCR WebDav login. > I've now found and fixed the problem on my local build, and I've now got DAV Explorer to work with JCR Webdav. Here's a description of the bugfix: > In jackrabbit/contrib/jcr-server/server/src/java/org/apache/jackrabbit/server/AbstractWebdavServlet.java, there is a public static final String DEFAULT_AUTHENTICATE_HEADER. > This is currently set to "Basic Realm=Jackrabbit Webdav Server". > This is not a valid string for use in this context as it is in breach of RFC2617 for 2 reasons: > 1) "Realm" should be "realm" > 2) "Jackrabbit Webdav Server" should be in quotes, i.e. "\"Jackrabbit Webdav Server\"" > According to http://www.ietf.org/rfc/rfc2617.txt, a valid challenge would be: > WWW-Authenticate: Basic realm="WallyWorld" > Note that "realm" is not capitalised and "WallyWorld" has been enclosed in quotes (the "WWW-Authenticate: " string is held elsewhere in the Java code and is correct) > In other words, AbstractWebdavServlet.java line 82, which currently reads: > public static final String DEFAULT_AUTHENTICATE_HEADER = "Basic Realm=Jackrabbit Webdav Server"; > should be changed to read > public static final String DEFAULT_AUTHENTICATE_HEADER = "Basic realm=\"Jackrabbit Webdav Server\""; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira