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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.0, 7.0.0, 8.0.0
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • 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:
            Unassigned Unassigned
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: