Projection fields are added twice to "find" command

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.6.1
    • Affects Version/s: 3.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A "find" operation sent as an OP_QUERY to MongoDB 3.2 or older packs the filter and the projection documents end-to-end. Starting in MongoDB 3.2, "find" is a command, and the projection document should be included as a "projection" field within the command document.

      PyMongo does this correctly but it also packs the projection document end-to-end after the "find" command document. The server doesn't care, but PyMongo violates the protocol spec and it's a surprising thing to see on the wire. Wireshark screenshot attached.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: