Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-276

Drivers must raise an error if response messageLength > ismaster.maxMessageSizeBytes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • Needed
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      MOTOR-179 Fixed
      GODRIVER-150 Fixed 1.5.0
      SWIFT-1032 Won't Do
      RUST-616 Fixed 2.3.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion MOTOR-179 Fixed GODRIVER-150 Fixed 1.5.0 SWIFT-1032 Won't Do RUST-616 Fixed 2.3.0

      When reading a response from the server, if header.messageLength is greater than ismaster.maxMessageSizeBytes a driver MUST raise an error and close the connection.

      If this is the first operation run on the server (e.g. the first ismaster command sent on first connection) use a hard coded value of 48MB, switching to ismaster.maxMessageSizeBytes once you have received a valid ismaster response.

      Original bug report continues below
      ---------------------------------------------

      The new find() command in MongoDB 3.2 can return documents that are larger then the configured maxBsonObjectSize (16777216 bytes).

      Drivers that validate the messageLength header from the server need to adjust their validation accordingly.

      I suggest we use the same logic as the server, which is rumored to do:
      maxBsonObjectSize + 16K

            Assignee:
            Unassigned Unassigned
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: