jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <fmesc...@gmail.com>
Subject UserManager autosace issue
Date Thu, 11 Mar 2010 10:51:14 GMT
Hi,

Consier a UserManager not set to autosave mode. I do:

   Group g = userManager.createGroup(groupPrincipal);
   g.addMemmber(someUser);

This results in an InvalidItemStateException:

javax.jcr.InvalidItemStateException:
c0a1a731-9fea-34fa-aa78-d224bd58a981 has been modified externally
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1145)
	at
org.apache.jackrabbit.core.security.user.UserManagerImpl.setProtectedProperty(UserManagerImpl.java:581)
	at
org.apache.jackrabbit.core.security.user.GroupImpl.addMember(GroupImpl.java:151)

I assume this is because the addMember method calls Item.save() while
the parent node has not been saved yet.

Is this a known issue worth following up to ?

Thanks and Regards
Felix

Mime
View raw message