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

session_jscore_passthrough.yml test suite should fail if command is sent without a session

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      TIG 2017-10-02

      Description

      The Mongo.prototype.runCommand() and Mongo.prototype.runCommandWithMetadata() functions should be overridden such that an error is thrown if they receive a command object without an "lsid" property. This approach would have caught the issue with getMore command requests described in SERVER-30848 and may find additional gaps in how sessions are integrated in the mongo shell.

      Note: Until SERVER-30848 is fixed, we can condition throwing an error on the command being something other than a getMore.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: