[SERVER-45920] Validate writeConcern.w Created: 31/Jan/20 Updated: 29/Oct/23 Resolved: 03/Feb/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Lauren Lewis (Inactive) | Assignee: | Amirsaman Memaripour |
| 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: | Service Arch 2020-02-10 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
We attempt to use numberInt() to load integers from the wire here and here. Both of these should be safeNumberLong() calls instead. The wNumNodes value should also be validated against the maximum amount of nodes in a replica set before it gets downcasted to int. |
| Comments |
| Comment by Githook User [ 21/Feb/20 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: Change w value for unsatisfiable write concern in tests (#301)
|
| Comment by Githook User [ 07/Feb/20 ] |
|
Author: {'username': 'divjotarora', 'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com'}Message: Change w value for unsatisfiable write concern in tests (#301)
|
| Comment by Githook User [ 03/Feb/20 ] |
|
Author: {'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@10gen.com'}Message: |