jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@pobox.com>
Subject Re: multivalue import problem
Date Fri, 01 Dec 2006 20:02:50 GMT
On Fri, 2006-12-01 at 19:41 +0000, Torgeir Veimo wrote:
> On Fri, 2006-12-01 at 18:08 +0000, Torgeir Veimo wrote:
> > On Fri, 2006-12-01 at 16:21 +0000, Torgeir Veimo wrote:
> > > I've got a node type def like this;
> > > 
> > > [nen:protected] > mix:referenceable mixin orderable
> > > - nen:owner (string) mandatory multiple
> > > + nen:ace(nen:ace)=nen:ace multiple
> > > 
> > > I've verified that this definition is in fact effective in the
> > > repository;
> > 
> > I'm exporting with session.exportSystemView() and importing with
> > session.importXML().
> > 
> > The export file contains fragments such as 
> > 
> > <sv:property sv:name="nen:owner"
> > sv:type="String"><sv:value>authenticated</sv:value></sv:property>
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> 
> I tried adding some debug statements into PropInfo.apply(), and I get
> output such as 

It works if I change PropInfo.apply() line 136 to 

if (va.length == 1 && !def.isMultiple()) {
...

So it seems that for some reason, even if PropDef.isMultiple() is true
for a given property, no ValueFormatException is thrown when setting the
property as single value.

-- 
Torgeir Veimo <torgeir@pobox.com>


Mime
View raw message