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

relax validation of "query" field in count command for driver backwards compatibility

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: 2.7.7
    • Component/s: Querying
    • None

      Commit d71566a55ebbe76ee introduced server-side validation of the "query" field in the count command, rejecting commands where "query" is not of BSON type Object.

      Some drivers pass non-Object values for the "query" field in the case that the application did not provide a value. The validation described above can therefore cause compatibility issues for drivers. We should consider relaxing the validation to allow some or all non-Object values.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: