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

Incorrect $elemMatch query analysis in mongocryptd if document contains 2 different fields with the same name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 6.0.0
    • 6.1.1, 4.2.24, 4.4.19, 5.0.15, 6.0.4
    • None

    Description

      mongocryptd $elemMatch analysis encrypts field that is not mentioned in schemaMap. This happens if a document contains 2 different fields with the same name. If one of this field is mentioned in schemaMap, $elemMatch query analysis will encrypt both of them during filter creating.

      Attachments

        Issue Links

          Activity

            People

              davis.haupt@mongodb.com Davis Haupt
              dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: