From dev-return-17907-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Apr 01 14:58:56 2008 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 4917 invoked from network); 1 Apr 2008 14:58:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 14:58:56 -0000 Received: (qmail 28194 invoked by uid 500); 1 Apr 2008 14:58:53 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 28171 invoked by uid 500); 1 Apr 2008 14:58:53 -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 28149 invoked by uid 99); 1 Apr 2008 14:58:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 07:58:53 -0700 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; Tue, 01 Apr 2008 14:58:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7AC91234C0B9 for ; Tue, 1 Apr 2008 07:56:26 -0700 (PDT) Message-ID: <1093315942.1207061786501.JavaMail.jira@brutus> Date: Tue, 1 Apr 2008 07:56:26 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1227) Restore of empty multivalue property always changes property type to String In-Reply-To: <11091755.1195661563002.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-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-1227: ------------------------------- Fix Version/s: 1.3.4 Merged to the 1.3 branch in revision 643423. > Restore of empty multivalue property always changes property type to String > --------------------------------------------------------------------------- > > Key: JCR-1227 > URL: https://issues.apache.org/jira/browse/JCR-1227 > Project: Jackrabbit > Issue Type: Bug > Components: jackrabbit-core, versioning > Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.4 > Reporter: Tomek Dabrowski > Assignee: Jukka Zitting > Fix For: core 1.4.1, 1.3.4 > > Attachments: restoreMultvalueProp.patch > > > When you do a restore of empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method. > Attached patch with test case. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.