Cannot remove an environment user with upper case characters

Bug #1467037 reported by Cheryl Jennings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Medium
Cheryl Jennings
1.23
Fix Released
Medium
Cheryl Jennings
1.24
Fix Released
Medium
Cheryl Jennings

Bug Description

When creating the document for an environment user, the username is stored as all lower case. However, when the query is done to remove a user from the collection, the user tag passed in is not converted to lower case.

It appears the new methods EnvironmentsForUser and IsSystemAdministrator will also have this problem.

Revision history for this message
Cheryl Jennings (cherylj) wrote :

EnvironmentsForUser and IsSystemAdministrator don't have this problem. RemoveEnvironmentUser does because it is querying on the ID (which is the lower case version of the name).

Revision history for this message
Cheryl Jennings (cherylj) wrote :
Changed in juju-core:
assignee: nobody → Cheryl Jennings (cherylj)
status: New → In Progress
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-core:
importance: Undecided → Medium
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.25.0
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.