Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 76610 invoked from network); 14 Nov 2005 13:49:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Nov 2005 13:49:25 -0000 Received: (qmail 50602 invoked by uid 500); 14 Nov 2005 13:49:24 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 50591 invoked by uid 99); 14 Nov 2005 13:49:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 05:49:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stefan.guggisberg@gmail.com designates 64.233.162.200 as permitted sender) Received: from [64.233.162.200] (HELO zproxy.gmail.com) (64.233.162.200) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 05:49:16 -0800 Received: by zproxy.gmail.com with SMTP id i11so1300386nzi for ; Mon, 14 Nov 2005 05:49:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jeOYq4hNXp6msxziQ8YdwCEyuQKkkipxcYIjT+OHCf4aGIRh6+6h5Q2qf13ZxZYy8CCG4vFR2yLqmJfsHK/JF14CjHKLTzyq9Nlf3P9xf7I7XrpM9QBVkW3tHy9GOTGWCAe4h4inXyHGg0ZlrnFPzsb5mPf+6xYOmQFw631H8S0= Received: by 10.36.129.12 with SMTP id b12mr2065335nzd; Mon, 14 Nov 2005 05:49:03 -0800 (PST) Received: by 10.36.84.14 with HTTP; Mon, 14 Nov 2005 05:49:03 -0800 (PST) Message-ID: <90a8d1c00511140549u47019358v80f66fb5e98ffa77@mail.gmail.com> Date: Mon, 14 Nov 2005 14:49:03 +0100 From: Stefan Guggisberg To: jackrabbit-dev@incubator.apache.org Subject: Re: Bug with multi-valued properties when exporting repository content? In-Reply-To: <8fa1023f0511121246u25263b4al17b44853782bcafe@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8fa1023f0511121246u25263b4al17b44853782bcafe@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi martin, On 11/12/05, Martin Perez wrote: > Hi. > > I finished my holidays and so I expect to spam again this list with a bun= ch > of questions and possible bug reports :) > > First of all, I'm using a two weeks ago version of jackrabbit. So forgive= me > if this bug has already been resolved. > > Now, the bug: I created a node with only one multi-valued property. The > property also only has a single value. But, even as the property has one > value, the property is multivalued and has a values attribute composed by= a > Value[1] array and its multivalued attribute is true. All is fine. > > Now, I export that simple repository, and after this I import it. Here is > the surprise: now that simple property has a values attribute composed by= a > Value[1] array (ok) but multivalued attribute is false !!! what do you mean with "multivalued attribute is false" and "has a values attribute"? > > I tested this with a property with two values, and in this case all works > correctly, so it seems that the problem is with multi-valued properties w= ith > only one Value in their values array. > > Do you think that this could be a bug ? or maybe I'm missing something... what export format did you choose? document view or system view? note that the document view export format is not guaranteed to be fully roundtrippable as some information is inevitably lost in order to make the output more human readable. if you need to reimport the exported data you should use the system view format. 6.4.2 Document View XML Mapping (ff.) of the jsr 170 specification provides more detailed information on this topic. cheers stefan > > Thanks, > > Martin > >