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/[email protected]: 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="[email protected]"> − <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>[email protected]</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>[email protected]</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.
