[SERVER-63617] Invalid 2D sphere documents do not throw BadValue Created: 14/Feb/22  Updated: 29/Oct/23  Resolved: 15/Feb/22

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

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

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-02-21
Participants:

 Description   

The jsTest timeseries_metric_index_2dsphere.jsĀ asserts that ErrorCodes::BadValue is thrown when invalid documents are provided. However, the code does not throw this error code. This hasn't been caught because the loop used to check these documents is incorrect, and is inserting the indices of the documentĀ (because of how for/in loops work in javascript) which are currently just ignored by the bulk insert api.



 Comments   
Comment by Githook User [ 15/Feb/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-63617 Invalid 2D sphere documents do not throw BadValue
Branch: master
https://github.com/mongodb/mongo/commit/9a18b279d302d5aad79435bc2fa465dcd6692e6a

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