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

Make copyDatabase work with all authentication mechanisms

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Security
    • None

    Description

      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
      

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            marius.bogdanescu@gmail.com Marius Bogdanescu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: