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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.7.8
    • Affects Version/s: 2.7.7
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              David Storch
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: