[SERVER-12562] Possible to run user mgmt read commands on secondary Created: 31/Jan/14 Updated: 11/Jul/16 Resolved: 05/Feb/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | 2.5.4 |
| Fix Version/s: | 2.6.0-rc0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andreas Nilsson | Assignee: | Andreas Nilsson |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | Start a replica set, it will run with read preference Primary by default.
|
||||||||
| Participants: | |||||||||
| Description |
|
It is possible to successfully run the commands usersInfo and rolesInfo on a secondary without setting slaveOk=true in the command. That is, the command's corresponding slaveOk() virtual functions are returning true when they should return false. When changing slaveOk() also implement slaveOverrideOk() to return true for these commands so that specifying slaveOk=true in the command will be honored. |
| Comments |
| Comment by Githook User [ 05/Feb/14 ] |
|
Author: {u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}Message: |
| Comment by Andreas Nilsson [ 04/Feb/14 ] |