[CDRIVER-2016] Report offending field name in BSON validation errors Created: 02/Feb/17  Updated: 11/Jul/17  Resolved: 17/May/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.6.0
Fix Version/s: 1.7.0

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to PHPC-712 Driver should validate BSON documents... Closed
is related to CDRIVER-1341 Driver should validate BSON documents... Closed

 Description   

libmongoc's BSON validation introduced in CDRIVER-1341 represents a regression in specificity compared to the server's error message. Whenever possible, these errors should include the offending field name (or field path) so that users can more easily resolve the error.



 Comments   
Comment by Githook User [ 11/Jul/17 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: PHPC-977: Update tests for expected BulkWrite BSON validation errors

The error message was made more descriptive in CDRIVER-2016.
Branch: master
https://github.com/mongodb/mongo-php-driver/commit/a28a5eeecd793dc4540a4f294d938e3068450769

Comment by Githook User [ 17/May/17 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-2016 on error, report which key is invalid
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/31a93c95b90810c5cfe5e4648a8ee781ca5da617

Generated at Wed Feb 07 21:13:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.