jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aimran <aimra...@gmail.com>
Subject Import export fails for authorizable node
Date Wed, 05 Jan 2011 19:44:37 GMT

Hi I am trying to export and import a workspace [system view] using the API. 

However I am getting a strange error when trying to save the import data:

 javax.jcr.nodetype.ConstraintViolationException:
/jcr:root/rep:security/rep:authorizables/rep:users/u/u1/u1@test.com:
mandatory property {internal}password does not exist
        at
org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:464)
        at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1097)
        at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)


The exported XML seems to have the password field for the said user:
<sv:node sv:name="u1@test.com">
−
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>rep:User</sv:value>
</sv:property>
−
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>9a0dab63-beca-3def-b3c2-b73a878fe095</sv:value>
</sv:property>
−
<sv:property sv:name="email" sv:type="String">
<sv:value>u1@test.com</sv:value>
</sv:property>
−
<sv:property sv:name="jcr:created" sv:type="Date">
<sv:value>2011-01-05T13:08:12.890-06:00</sv:value>
</sv:property>
−
<sv:property sv:name="jcr:createdBy" sv:type="String">
<sv:value>admin</sv:value>
</sv:property>
−
<sv:property sv:name="rep:password" sv:type="String">
<sv:value>{sha1}5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8</sv:value>
</sv:property>
−
<sv:property sv:name="rep:principalName" sv:type="String">
<sv:value>u1@test.com</sv:value>
</sv:property>
</sv:node>

Is there a solution for this? Is this a bug?

Also, another related question:
I understand that jcr:system cannot be exported/imported... can the
"jcr:security" and "jcr:policy" be exported/imported?

Thanks,
Imran
-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/Import-export-fails-for-authorizable-node-tp3176272p3176272.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message