[SERVER-72495] validate checkBSONConformance mode not working correctly with BSON type CodeWScope Created: 03/Jan/23  Updated: 29/Oct/23  Resolved: 05/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc5, 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2
Sprint: Execution Team 2023-01-09
Participants:

 Description   

When validating the structural consistency of a BSON element, we handle CodeWScope differently and will move _currElem forwards to the middle of the BSON element. The new BSON conformance checks assume _currElem points at the beginning of the element.



 Comments   
Comment by Githook User [ 09/Jan/23 ]

Author:

{'name': 'Yuhong Zhang', 'email': '34732434+YuhongZhang98@users.noreply.github.com', 'username': 'YuhongZhang98'}

Message: SERVER-72495 Return warnings about CodeWScope correctly in checkBSONConformance mode for validate

(cherry picked from commit 58bf88893c373c84226671984b8dbfe21d630cb7)
Branch: v6.2
https://github.com/mongodb/mongo/commit/ef0e913ce74cc8869b7630aa5fc0743c5f1f447c

Comment by Githook User [ 05/Jan/23 ]

Author:

{'name': 'Yuhong Zhang', 'email': '34732434+YuhongZhang98@users.noreply.github.com', 'username': 'YuhongZhang98'}

Message: SERVER-72495 Return warnings about CodeWScope correctly in checkBSONConformance mode for validate
Branch: master
https://github.com/mongodb/mongo/commit/58bf88893c373c84226671984b8dbfe21d630cb7

Generated at Thu Feb 08 06:21:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.