Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 444 invoked from network); 20 Sep 2007 16:58:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 16:58:54 -0000 Received: (qmail 35343 invoked by uid 500); 20 Sep 2007 16:58:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 34982 invoked by uid 500); 20 Sep 2007 16:58:45 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 34973 invoked by uid 99); 20 Sep 2007 16:58:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 09:58:45 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 16:58:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F749714168 for ; Thu, 20 Sep 2007 09:58:31 -0700 (PDT) Message-ID: <25123877.1190307511587.JavaMail.jira@brutus> Date: Thu, 20 Sep 2007 09:58:31 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1071) PROPPATCH on collection gets 403 Forbidden In-Reply-To: <634102.1187709690948.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-1071: ------------------------------- Affects Version/s: (was: 1.4) 1.3 1.3.1 Fix Version/s: (was: 1.4) 1.3.2 Merged to the 1.3 branch in revision 577815. > PROPPATCH on collection gets 403 Forbidden > ------------------------------------------ > > Key: JCR-1071 > URL: https://issues.apache.org/jira/browse/JCR-1071 > Project: Jackrabbit > Issue Type: Bug > Components: webdav > Affects Versions: 1.3, 1.3.1 > Reporter: Rob Owen > Assignee: angela > Fix For: 1.3.2 > > > DefaultHandler.canImport(PropertyImportContext, boolean) prevents setting properties (PROPPATCH) on collections through WebDAV ... returns 403 Forbidden. It checks to see whether the contextItem is not a collection, or has a jcr:content node. This test fails for a collection and should probably allow collections or nodes that have a jcr:content subnode. Here is a patch for the change > Index: jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DefaultHandler.java > =================================================================== > --- jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DefaultHandler.java (revision 567695) > +++ jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/DefaultHandler.java (working copy) > @@ -570,7 +570,7 @@ > } > Item contextItem = context.getImportRoot(); > try { > - return contextItem != null && contextItem.isNode() && (!isCollection || ((Node)contextItem).hasNode(JcrConstants.JCR_CONTENT)); > + return contextItem != null && contextItem.isNode() && (isCollection || ((Node)contextItem).hasNode(JcrConstants.JCR_CONTENT)); > } catch (RepositoryException e) { > log.error("Unexpected error: " + e.getMessage()); > return false; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.