Make copyDatabase work with all authentication mechanisms

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently there is an assert:
      assert(mechanism == "SCRAM-SHA-1" || mechanism == "MONGODB-CR");

      I am using PLAIN authentication mechanism and I want to copy a database in the same mongo instance.

      I get the error:
      assert failed

      doassert@src/mongo/shell/assert.js:15:14
      assert@src/mongo/shell/assert.js:31:5
      DB.prototype.copyDatabase@src/mongo/shell/db.js:380:5
      @(shell):1:1
      
      2016-03-15T16:10:48.641+0000 E QUERY    [thread1] Error: assert failed :
      doassert@src/mongo/shell/assert.js:15:14
      assert@src/mongo/shell/assert.js:31:5
      DB.prototype.copyDatabase@src/mongo/shell/db.js:380:5
      @(shell):1:1
      

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Marius Bogdanescu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: