3 messages in org.apache.jackrabbit.usersMulti-Value Properies in SystemView XML
FromSent OnAttachments
Jake RobertsOct 11, 2007 2:12 pm 
Stefan GuggisbergOct 12, 2007 5:05 am 
astr...@gmx.netOct 15, 2007 6:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Multi-Value Properies in SystemView XMLActions...
From:Jake Roberts (ja@quantum4d.com)
Date:Oct 11, 2007 2:12:34 pm
List:org.apache.jackrabbit.users

Apologies if this question has been answered elsewhere; I've poked around and haven't seen anything. I feel like I'm missing something basic.

I'm trying to round-trip repository data to and from System View XML. But there's a problem: When a multi-valued property that happens to have only one value is exported to XML (System View), it becomes a single-valued property on re-import of the same file.

Consulting the JCR spec, it looks like no provision is made for recording the multiplicity of a property in System View XML. You get the name, the type, and the values and that's it.

When I import the same XML file, it appears that the importer decides whether a property is single or multi-valued based on the number of value elements present for that property in XML. And as far as I can tell, there's no other way it could work. The information necessary to tell a single-valued property from a multi-valued property with a single value isn't present. Or am I confused?

In any case, the practical upshot is that I get ValueFormatExceptions on properties that my application expects to be multi-valued, as they were prior to export and re-import. Any suggestions on how to correctly handle round-tripping of multi-valued props via System View XML?

Thanks,

- Jake -- View this message in context:
http://www.nabble.com/Multi-Value-Properies-in-SystemView-XML-tf4610005.html#a13164867 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.