Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 34881 invoked from network); 17 May 2007 07:35:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 07:35:55 -0000 Received: (qmail 47935 invoked by uid 500); 17 May 2007 07:36:00 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 47912 invoked by uid 500); 17 May 2007 07:36:00 -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 47903 invoked by uid 99); 17 May 2007 07:36:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 00:36:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [81.19.98.213] (HELO eul0600252.eu.verio.net) (81.19.98.213) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 00:35:53 -0700 Received: from [192.168.1.3] (unknown [87.219.106.242]) by eul0600252.eu.verio.net (Postfix) with ESMTP id 1B65553B70 for ; Thu, 17 May 2007 08:35:31 +0200 (CEST) Subject: RE: Renaming node property From: Paco Avila To: users@jackrabbit.apache.org In-Reply-To: <004c01c7984c$6b808630$0a01a8c0@mobileiq.local> References: <004c01c7984c$6b808630$0a01a8c0@mobileiq.local> Content-Type: text/plain; charset=utf-8 Date: Thu, 17 May 2007 09:35:30 +0200 Message-Id: <1179387330.6049.5.camel@antares> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org El jue, 17-05-2007 a las 07:27 +0100, Shaun Barriball escribió: > We've found Node type modifications a little tricky to resolve. > > If you're changing a property name from X to Y then one solution is to: > > * export the affected workspace(s) to XML using exportsysview > * empty the workspace(s) > * update the types used by your JackRabbit install which can be achieved by > replacing the custom_nodetypes.xml file > * do a search and replace in your exported XML replacing X with Y. > * reimport. > > Another alternative could be to update your type so that X & Y temporarily > co-exist. Create a script to copy X values to Y, and then remove property X. > Modify your types to remove X. This would require some simple Java code to > be written. Actually you can't remove a property from a registered node type. -- Paco Avila