NuGet/NuGetGallery — Issue #272: Editing a User's Roles in DbAdmin causes an exception
Author: Haacked
Created: 2011-11-28 21:03:01+00:00
State: open

Repro steps:
1. Search for a user.
2. Click Edit on the user.
3. Check the "Admins" role and click Save.

Expected: User is added to admins role.
Actual: Exception message: https://preview.nuget.org/elmah.axd/detail?id=4F77237D-13CE-4FDA-BFD3-4A5A982B59B3

It seems many-to-many relationships are broken. I get the same result if I edit a role and try to add users to it.