[SERVER-13147] "show users" in 2.6 doesn't work for 2.4 user authentication model Created: 12/Mar/14  Updated: 11/Jul/16  Resolved: 13/Mar/14

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.6.0-rc1
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Linda Qin Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-3030 Update downgrade docs to include inva... Closed
Operating System: ALL
Participants:

 Description   

If I just upgrade the MongoDB version from 2.4 to 2.6, but don't upgrade the authentication model to 2.6, "show users" command fails:

> show users
2014-03-12T12:13:39.480+1100 Error: The usersInfo and rolesInfo commands require auth data to have schema version 3 or 2 but found 1 at src/mongo/shell/db.js:1274

Is this expected? Should "show users" command work for both 2.4 and 2.6 authentication models?



 Comments   
Comment by Githook User [ 13/Mar/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-13147 Make getUsers shell helper use system.users query when dealing with 2.4 schema users
Branch: v2.6
https://github.com/mongodb/mongo/commit/88d3c3f494f6e946ebccda82035b85d160ee0550

Comment by Githook User [ 13/Mar/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-13147 Make getUsers shell helper use system.users query when dealing with 2.4 schema users
Branch: master
https://github.com/mongodb/mongo/commit/c6bef666334edc794e71ef9ddbbe4cca35fb4da9

Generated at Thu Feb 08 03:30:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.