[SERVER-48781] Introduce 'DocumentValidationErrorExtraInfo' and shell support for document validation errors Created: 15/Jun/20  Updated: 29/Oct/23  Resolved: 07/Jul/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: Mihai Andrei Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-06-15, Query 2020-06-29, Query 2020-07-13
Participants:
Linked BF Score: 91

 Description   

In order for document validation errors to correctly propagate from the server to the user when the collection validator's 'validationAction' is set to error, two components are needed:

As part of this work, doc_validation.js should be updated to verify that the 'errInfo' field is propagated correctly for DocumentValidationFailure errors both in a standalone as well as a sharded cluster.



 Comments   
Comment by Githook User [ 07/Jul/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-48781 Introduce 'DocumentValidationErrorExtraInfo' and shell support for document validation errors
Branch: master
https://github.com/mongodb/mongo/commit/e87f6f53c58a75229b40fff7b32de202f2dcccc7

Comment by Githook User [ 02/Jul/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: Revert "SERVER-48781 Introduce 'DocumentValidationErrorExtraInfo' and shell support for document validation errors"

This reverts commit 0ab6e8fb4d26b7bbe22d483dbe7850e64013447c.
Branch: master
https://github.com/mongodb/mongo/commit/639c8e665ed9eb55cea88c700885d8b01727e6d5

Comment by Githook User [ 01/Jul/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-48781 Introduce 'DocumentValidationErrorExtraInfo' and shell support for document validation errors
Branch: master
https://github.com/mongodb/mongo/commit/0ab6e8fb4d26b7bbe22d483dbe7850e64013447c

Generated at Thu Feb 08 05:18:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.