Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JCR Jackrabbit User Manager 2.0.4
-
None
Description
(This is from a build of rev 889246.)
Deleting a group which has a member throws an error. Trying to look at the group afterwards throws an error. Trying to recreate the group afterward throws an error. But then the group seems to have been recreated successfully.
curl -u admin:admin -F :name=agroup http://localhost:8080/system/userManager/group.create.html
curl -u admin:admin http://localhost:8080/system/userManager/group/agroup.json
{}
curl -u admin:admin -F :member=nico http://localhost:8080/system/userManager/group/agroup.update.html
curl -u admin:admin -X POST http://localhost:8080/system/userManager/group/agroup.delete.html
Error while processing /system/userManager/group/agroup
javax.jcr.ReferentialIntegrityException: 901c8411-932e-40b1-bf19-7b675b6dfb81: the node cannot be removed because it is still being referenced.
curl -u admin:admin http://localhost:8080/system/userManager/group/agroup.json
404 No resource found
curl -u admin:admin -F :name=agroup http://localhost:8080/system/userManager/group.create.html
Error while processing /system/userManager/group
javax.jcr.RepositoryException: Failed to create new group.: 901c8411-932e-40b1-bf19-7b675b6dfb81: the node cannot be removed because it is still being referenced.: 901c8411-932e-40b1-bf19-7b675b6dfb81: the node cannot be removed because it is still being referenced.
curl -u admin:admin http://localhost:8080/system/userManager/group/agroup.json
{}