[SERVER-9130] Shell calls replSetGetStatus instead of isMaster Created: 25/Mar/13 Updated: 11/Jul/16 Resolved: 02/Aug/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.2.3, 2.4.1 |
| Fix Version/s: | 2.5.2 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Scott Hernandez (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Minor Change |
| Operating System: | ALL |
| Participants: |
| Description |
|
When constructing the shell prompt we call replSetGetStatus which is an Admin command. This should not be a requirement so we need to swap in isMaster for it. This spams the destination server and causes an inconsistent prompt. Users will see the error "command denied: { replSetGetStatus: 1.0, forShell: 1.0 }" in their log until they have authenticated with a role that allows replSetGetStatus. |
| Comments |
| Comment by auto [ 02/Aug/13 ] |
|
Author: {u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}Message: |
| Comment by auto [ 02/Aug/13 ] |
|
Author: {u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}Message: |