Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 33620 invoked from network); 4 Aug 2010 14:24:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 14:24:44 -0000 Received: (qmail 48954 invoked by uid 500); 4 Aug 2010 14:24:44 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 48774 invoked by uid 500); 4 Aug 2010 14:24:42 -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 48759 invoked by uid 99); 4 Aug 2010 14:24:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 14:24:42 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 14:24:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o74EOGp6028863 for ; Wed, 4 Aug 2010 14:24:16 GMT Message-ID: <6074324.157921280931856625.JavaMail.jira@thor> Date: Wed, 4 Aug 2010 10:24:16 -0400 (EDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2678) RepositoryCopier has problems with multi-valued properties In-Reply-To: <8002567.411881279267010308.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-2678: ------------------------------- Fix Version/s: (was: 1.6.3) > RepositoryCopier has problems with multi-valued properties > ---------------------------------------------------------- > > Key: JCR-2678 > URL: https://issues.apache.org/jira/browse/JCR-2678 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 1.6.2 > Environment: Jackrabbit 1.6.2 > Reporter: Sascha Theves > Attachments: JCR-2678.zip, RepositoryCopierTest.java > > > When using the RepositoryCopier to backup and restore your repository you run into problems with multi-valued properties where you have only one value assigned. > The backup works fine but when you try to restore the backup and want to get the values of a multi-valued property you get: > java.lang.RuntimeException: property /ns:someNode/ns:multiValued is a single-valued property, so it's value can not be retrieved as an array > at org.apache.jackrabbit.core.PropertyImpl.internalGetValues(PropertyImpl.java:441) > at org.apache.jackrabbit.core.PropertyImpl.getValues(PropertyImpl.java:475) > at xxx.MyClass.getProperty(MyClass.java:274) > You can reproduce that by using the RepositoryCopier to copy your repository and then read it back again. You must have a node with a multi-valued property in it where you have only _one_ value contained in the property to the time the backup is created. > The node type definition looks like: > // The namespace declaration > > > // Node type name > [ns:myNodeType] > - ns:multiValued (string) > multiple -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.