Bug #43553 | MySql web role provider does not remove users from roles | ||
---|---|---|---|
Submitted: | 11 Mar 2009 9:05 | Modified: | 3 Apr 2009 16:45 |
Reporter: | Ermete Gaudenzi | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 5.2.3, 5.2.5 | OS: | Windows (dotnet 2.0) |
Assigned to: | CPU Architecture: | Any | |
Tags: | membership, provider, roles, web |
[11 Mar 2009 9:05]
Ermete Gaudenzi
[11 Mar 2009 9:18]
Tonci Grgin
Hi Ermete and thanks for spotting this! Truly, look into code shows that: public override bool DeleteRole(string rolename, bool throwOnPopulatedRole) and public override void RemoveUsersFromRoles(string[] usernames, string[] rolenames) do not have ts.complete(). Verified as described by looking into latest sources.
[30 Mar 2009 21:41]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/70850
[30 Mar 2009 21:42]
Reggie Burnett
fixed in 5.2.6
[3 Apr 2009 16:45]
Tony Bedford
An entry was added to the 5.2.6 changelog: Requests sent to the Connector/NET role provider to remove a user from a role failed. The query log showed the query was correctly executed within a transaction which was immediately rolled back. The rollback was caused by a missing call to the Complete method of the transaction.