Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 235 invoked from network); 23 Apr 2009 11:26:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Apr 2009 11:26:12 -0000 Received: (qmail 75704 invoked by uid 500); 23 Apr 2009 11:26:11 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 75625 invoked by uid 500); 23 Apr 2009 11:26:11 -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 75610 invoked by uid 99); 23 Apr 2009 11:26:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 11:26:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 11:26:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9FD00234C003 for ; Thu, 23 Apr 2009 04:25:47 -0700 (PDT) Message-ID: <557865121.1240485947627.JavaMail.jira@brutus> Date: Thu, 23 Apr 2009 04:25:47 -0700 (PDT) From: =?utf-8?Q?Michael_D=C3=BCrig_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2070) jcr-server should respect node type definition jcr:content In-Reply-To: <1598770186.1239709934953.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2070?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127019= 00#action_12701900 ]=20 Michael D=C3=BCrig commented on JCR-2070: ------------------------------------ getContentNodeType() is hardcoded to nt:unstructured in DefaultHandler. So = the current code always tries to create jcr:content with type nt:unstructur= ed. This fails if the parent's child node definition does not allow nt:unst= ructured for jcr:content (i.e. requires nt:resource). As Jukka noted, the patch is flawed.=20 > jcr-server should respect node type definition jcr:content > ---------------------------------------------------------- > > Key: JCR-2070 > URL: https://issues.apache.org/jira/browse/JCR-2070 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-server > Reporter: Michael D=C3=BCrig > Attachments: JCR-2070.patch > > > When creating a new file, jcr:content defaults to nt:unstructured. This c= auses file creation to fail when the underlying persistent store (i.e. SPI = implementation) does not support nt:unstructured for jcr:content.=20 > I suggest to check whether the underlying implementation provides its own= node type for jcr:content and use that one. If not, default to nt:unstruct= ured. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.