Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63617

Invalid 2D sphere documents do not throw BadValue

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.3.0
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-02-21

    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.

      Attachments

        Activity

          People

            allison.easton@mongodb.com Allison Easton
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: