[SERVER-44979] MongoInterfaceShardServer must check result of getDatabase Created: 06/Dec/19 Updated: 29/Oct/23 Resolved: 10/Dec/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Pulo | Assignee: | Ted Tuckman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qopt-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Query 2019-12-16 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 20 | ||||||||||||
| Description |
|
The functions dropCollection and createIndexes call getValue() on the result of getDatabase() without checking for errors. Like the other similar functions (createCollection, getIndexSpecs, and renameIfOptionsAndIndexesHaveNotChanged), they should wrap the getDatabase() calls with uassertStatusOK(). cc ted.tuckman |
| Comments |
| Comment by Githook User [ 10/Dec/19 ] |
|
Author: {'name': 'Ted Tuckman', 'username': 'TedTuckman', 'email': 'ted.tuckman@mongodb.com'}Message: |