Task #9235 (closed)
Opened 12 years ago
Closed 12 years ago
Bug: after remove and add group, user can't login
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-4.4 |
Component: | Security | Version: | n.a. |
Keywords: | n.a. | Cc: | jburel, atarkowska |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | n.a. |
Description
Niko pointed out on the forums that a strange combination of removing users from groups and then re-adding them, left some users without the ability to login. While testing #9193, I tracked down at least one case where this happens, namely when a user is removed from all groups, the "user" group is left with index = 0, so that IAdmin throws an exception on getDefaultGroup. Possible fixes include ignoring "user" when it's at position 0 (read-time) or noticing the fact at write-time and swapping elements.
See:
Change History (1)
comment:1 Changed 12 years ago by jmoore
- Remaining Time changed from 0.5 to 0
- Resolution set to fixed
- Status changed from new to closed
fix pushed to sprint18-bugfixes: