Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 92825 invoked from network); 17 Aug 2010 10:47:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Aug 2010 10:47:07 -0000 Received: (qmail 75620 invoked by uid 500); 17 Aug 2010 10:47:07 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 75430 invoked by uid 500); 17 Aug 2010 10:47:05 -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 75417 invoked by uid 99); 17 Aug 2010 10:47:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Aug 2010 10:47:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.91 as permitted sender) Received: from [207.126.148.91] (HELO eu3sys201amo010.postini.com) (207.126.148.91) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Aug 2010 10:46:57 +0000 Received: from source ([209.85.212.48]) by eu3sys201aob104.postini.com ([207.126.154.11]) with SMTP ID DSNKTGpojIqHb1FA3DcRg9kd6dhVpGSet+Hg@postini.com; Tue, 17 Aug 2010 10:46:36 UTC Received: by vws4 with SMTP id 4so4576074vws.7 for ; Tue, 17 Aug 2010 03:46:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.126.166 with SMTP id c38mr3837708vcs.192.1282041995460; Tue, 17 Aug 2010 03:46:35 -0700 (PDT) Received: by 10.220.175.136 with HTTP; Tue, 17 Aug 2010 03:46:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Aug 2010 12:46:35 +0200 Message-ID: Subject: Re: Issue while re-registering node types From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Aug 17, 2010 at 12:04, Torgeir Veimo wrote= : > On 17 August 2010 11:43, Davide Maestroni wr= ote: >> thanks for the suggestion. That could be a good workaround, though it is >> quite annoying that a bug in Jackrabbit code makes the =A0feature of aut= omatic >> registration of node types in Sling unusable. > > Of course fixing this specific problem would be helpful, but it would > be even better if proper schema reconfiguration was available. What do you mean by this? Except for this bug, you can update node types directly, and if they are "conflicting", you can update them by unregistering/registering them, avoiding the diff check altogether. Alsoy, JCR 2.0 comes with a Node.setNodeType() method to change the primary type of a node. Finally JCR is all about unstructured data, which generally solves the "my schema permanently changes and I have change the schema in the database/repository" issue. So I completely fail to see your point... Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com