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 problem
Date Fri, 01 Dec 2006 18:08:53 GMT
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:node sv:name="pages"><sv:property sv:name="jcr:primaryType"
sv:type="Name"><sv:value>nt:folder</sv:value></sv:property>
<sv:property sv:name="jcr:mixinTypes"
sv:type="Name"><sv:value>nen:resource</sv:value><sv:value>nen:protected</sv:value></sv:property>
<sv:property sv:name="jcr:uuid"
sv:type="String"><sv:value>7028da63-d65a-4126-85e1-1935179d6d3d</sv:value></sv:property>
<sv:property sv:name="nen:resourceid"
sv:type="Long"><sv:value>5</sv:value></sv:property>
<sv:property sv:name="dep:articletemplate"
sv:type="String"><sv:value>art_news.jsp</sv:value></sv:property>
<sv:property sv:name="dep:articleorder"
sv:type="String"><sv:value>descending</sv:value></sv:property>
<sv:property sv:name="nen:type"
sv:type="Long"><sv:value>0</sv:value></sv:property>
<sv:property sv:name="dep:sectiontemplate"
sv:type="String"><sv:value>sec_ntnu_subalumni.jsp</sv:value></sv:property>
<sv:property sv:name="nen:owner"
sv:type="String"><sv:value>authenticated</sv:value></sv:property>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

<sv:property sv:name="jcr:created"
sv:type="Date"><sv:value>2006-11-06T12:23:00.928Z</sv:value></sv:property>
<sv:property sv:name="dep:sectionorder"
sv:type="String"><sv:value>descending</sv:value></sv:property>
<sv:property sv:name="nen:name"
sv:type="String"><sv:value>pages</sv:value></sv:property>

It appears that the importXML method doesn't correctly create multivalue
properties by itself? Is it taking some shortcuts to the repository
backend that avoid schema checking?

-- 
Torgeir Veimo <torgeir@pobox.com>


Mime
View raw message