Fix remove role assignment adds role using LDAP assignment
When using the LDAP assignment backend, attempting to remove a
role assignment when the role hadn't been used before would
actually add the role assignment and would not return a
404 Not Found like the SQL backend.
This change makes it so that when attempt to remove a role that
wasn't assigned then 404 Not Found is returned.
Closes-Bug: #1242855
Change-Id: I28ccd26cc4bb1a241d0363d0ab52d2c11410e8b3
(cherry picked from commit c6800ca1ac984c879e75826df6694d6199444ea0)
(cherry picked from commit b17e7bec768bd53d3977352486378698a3db3cfa)
(cherry picked from commit 4221b6020e6b0b42325d8904d7b8a22577a6acc0)
Reviewed: https:/ /review. openstack. org/53154 github. com/openstack/ keystone/ commit/ 82dcde08f60c450 02955875664a3cf 82d1d211bc
Committed: http://
Submitter: Jenkins
Branch: stable/grizzly
commit 82dcde08f60c450 02955875664a3cf 82d1d211bc
Author: Brant Knudson <email address hidden>
Date: Mon Oct 21 15:21:12 2013 -0500
Fix remove role assignment adds role using LDAP assignment
When using the LDAP assignment backend, attempting to remove a
role assignment when the role hadn't been used before would
actually add the role assignment and would not return a
404 Not Found like the SQL backend.
This change makes it so that when attempt to remove a role that
wasn't assigned then 404 Not Found is returned.
Closes-Bug: #1242855 241d0363d0ab52d 2c11410e8b3 79e75826df6694d 6199444ea0) d39773524863786 98a3db3cfa) 2325d8904d7b8a2 2577a6acc0)
Change-Id: I28ccd26cc4bb1a
(cherry picked from commit c6800ca1ac984c8
(cherry picked from commit b17e7bec768bd53
(cherry picked from commit 4221b6020e6b0b4