DB.prototype.copyDatabase() doesn't inherit session when using SCRAM-SHA-1

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Sharding
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      DB.prototype.copyDatabase() calls through to Mongo.prototype.copyDatabaseWithSCRAM() when the authentication mechanism is configured to be "SCRAM-SHA-1". The Mongo.prototype.copyDatabaseWithSCRAM() function is implemented in C++ and doesn't use the DriverSession underlying the DB object.

      // Use the copyDatabase native helper for SCRAM-SHA-1
      if (mechanism == "SCRAM-SHA-1") {
          return this.getMongo().copyDatabaseWithSCRAM(
              fromdb, todb, fromhost, username, password, slaveOk);
      }
      

      Note: This issue was found via manual code inspection of all usages of DB.prototype.getMongo() during SERVER-30686.

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: