[SERVER-53499] dropRole fails when requireApiVersion=1 Created: 23/Dec/20 Updated: 29/Oct/23 Resolved: 19/Jan/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Shane Harvey | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Security 2021-01-11, Security 2021-01-25 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Python test suite fails while executing this dropRole command against a standalone mongod with requireApiVersion=1:
The error:
This error is unexpected because apiVersion was included in the dropRole command. The server version is:
|
| Comments |
| Comment by Githook User [ 15/Jan/21 ] | ||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: | ||||||||||||||||||||||||||||||||
| Comment by Ian Whalen (Inactive) [ 12/Jan/21 ] | ||||||||||||||||||||||||||||||||
|
Author: {'username': u'ShaneHarvey', 'name': u'Shane Harvey', 'email': u'shane.harvey@mongodb.com'}Message: Add pymongo.server_api.ServerApi and the MongoClient server_api option. | ||||||||||||||||||||||||||||||||
| Comment by Ian Whalen (Inactive) [ 12/Jan/21 ] | ||||||||||||||||||||||||||||||||
|
Author: {'username': u'ShaneHarvey', 'name': u'Shane Harvey', 'email': u'shane.harvey@mongodb.com'}Message: Add pymongo.server_api.ServerApi and the MongoClient server_api option. (cherry picked from commit ac2f506ba262b6360275fba96bb4fa1d43ae50f7) | ||||||||||||||||||||||||||||||||
| Comment by Mark Benvenuto [ 12/Jan/21 ] | ||||||||||||||||||||||||||||||||
|
Original fix only worked for replica sets and not standalone mongod | ||||||||||||||||||||||||||||||||
| Comment by Shane Harvey [ 12/Jan/21 ] | ||||||||||||||||||||||||||||||||
|
Can we reopen this issue? I still see the same bug on 4.9.0-alpha-1216-gb366fe3 which has the commit above:
Same failure:
| ||||||||||||||||||||||||||||||||
| Comment by Githook User [ 06/Jan/21 ] | ||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: |