Hi all,

During the update process of fields ACEs I'm getting this error:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
'12-1106-entityTypeFriendly-1' for key
'UNIQ_46C8B806EA000B103D9AB4A64DEF17BCE4289BF4'

I explain what I'm doing: As I allow to change the type of granting of the
permission (allow or deny), and I didn't find a way to update the granting
property of an ACE with acl methods like "updateObjectFieldACE" or the like,
I'm just deleting the ACE and inserting it again on the ACL with the new
value for the granting property. I do all this stuff for every field and, at
the end, I update the ACL with $aclProvider->updateACL($acl); . Could this
way of updating the granting property of an ACE bring this exception?

I'm looking at the MutableAclProvider and I see that the updateXXXProperty
methods first insert new ACEs and finally delete old ACEs (the ones which
were deleted from the ACL). Could this mean that, as I deleted and inserted
a new ACE from an ACL at the same time, at the moment of the update on the
DB it first try to insert the new ACE with the same ace_order as the one
that is going to be deleted? it's just a guess. I'm trying to trace the
error so I can give further details.

Is there a way to update the granting property of an ACE so I can update the
ACE instead of deleting it an reinserting it again?



Thanks in advance!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to