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

Distinct command can create an invalid BSON projection spec if key contains embedded null byte

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2019-05-06
    • 58

      As of SERVER-40089, the distinct key may be used to create a projection spec in the resulting canonical query. However, if the key contains an embedded null byte then we'll create an invalid BSON since BSON keys are null-terminated (while values are not, they are allowed to contain null bytes).

            Assignee:
            martin.neupauer@mongodb.com Martin Neupauer
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: