Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 92138 invoked from network); 30 Nov 2005 08:55:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Nov 2005 08:55:53 -0000 Received: (qmail 52196 invoked by uid 500); 30 Nov 2005 08:55:52 -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 52185 invoked by uid 99); 30 Nov 2005 08:55:52 -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; Wed, 30 Nov 2005 00:55:52 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4C336CB for ; Wed, 30 Nov 2005 09:55:31 +0100 (CET) Message-ID: <965647011.1133340931310.JavaMail.jira@ajax.apache.org> Date: Wed, 30 Nov 2005 09:55:31 +0100 (CET) From: "angela (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Commented: (JCR-276) SimpleWebdavServlet: avoid 404 for the root collection In-Reply-To: <1072930419.1132559081627.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-276?page=comments#action_12358894 ] angela commented on JCR-276: ---------------------------- discussion of variants: 1) redirection to the default-workspace ----------------------------------------------------------------------------------------------------- when accessing the not-existing root collection -> login with 'null' workspace and redirect to resource representing the repository root-node, thus including the workspace name obtained from the session. -> my favorite solution. but windows builtin dav client does not respect redirects. therefore dropped. 2) build a fake-root resource ------------------------------------------------------------------------------------------------------ resource with no representation in the repository. none of the write or lock methods would be allowed. it would only serve as collection for all the available workspaces. -> separate resource implementation needed (see also jcr package) -> need to make sure, that the new Repository-login is issued when the user accesses any of the workspace resources (and its members) -> perhaps confusing if the root does not allow any write operation? would be an option but i'm not sure, whether its really favorable.... 3) don't allow connection without valid resource-locator ------------------------------------------------------------------------------------------------------- perform Repository.login with 'null' workspace in case the locator obtained from the dav-request does not provide workspace information (e.g. when using the simple-resourcelocator) of if the workspace is "". validation check however is delegated to the resource implementation itself -> thus throwing 404 if the locator is null or does not provide a resourcepath. consequence: when using webdav/jcr/DavLocatorFactoryImpl accessing the 'root-collection' (thus connecting without valid workspace name) is not possible. switching back to the factory implementation in webdav/simple allows connection without workspace name. > SimpleWebdavServlet: avoid 404 for the root collection > ------------------------------------------------------ > > Key: JCR-276 > URL: http://issues.apache.org/jira/browse/JCR-276 > Project: Jackrabbit > Type: Improvement > Reporter: angela > Assignee: angela > Priority: Minor > > in order to avoid strange 404 error when accessing the root collection in simple webdav servlet (thus missing workspace name), that request should either be redirected or handled by a create fake root that has no correspondance in the jsr170 repository. -- 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