[CDRIVER-2256] Improve error message prefix for bulk write document validation errors Created: 25/Aug/17 Updated: 28/Oct/23 Resolved: 20/Nov/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.7.0 |
| Fix Version/s: | 1.9.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeremy Mikola | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
While reviewing
The first part of this message reads as if the key itself is invalid, when it is actually the value. In the past, most validation errors were due to keys (e.g. $ or dot characters), which might explain the original phrasing. I believe the following functions are affected:
|
| Comments |
| Comment by Githook User [ 12/Dec/17 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: |
| Comment by Githook User [ 12/Dec/17 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: |
| Comment by Githook User [ 20/Nov/17 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}Message: The error messages mostly say "invalid key", but invalid values can also |