Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1479

Projection fields are added twice to "find" command

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.1
    • Affects Version/s: 3.2
    • Component/s: 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:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: