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

Time-series index spec conversion does not check element type for 2dsphere check

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 6.0.0, 7.0.0, 8.0.0
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2024-10-28
    • 200

      When converting a user-facing time-series index spec into a spec on the buckets collection, one of the checks is whether it is a 2dsphere index. This check uses BSONElement::valueStringData which assumes that the element is a string. However, at this point we have not checked the element's type and so it may not actually be a string.

            Assignee:
            binh.vo@mongodb.com Binh Vo
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: