copydb command fails with 2.6 authorization with local source

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Security
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If copydb is used to copy from one database to another on the same machine and access control is enabled, it will fail every time with the error:

       
      db.getSiblingDB("admin").runCommand( { copydb: 1, fromdb: "mySourceDB", todb: "myTargetDB" } )
      {
      	"ok" : 0,
      	"errmsg" : "index query on ns mySourceDB.system.namespaces failed: not authorized for query on mySourceDB.system.namespaces"
      }
      

            Assignee:
            Spencer Brody (Inactive)
            Reporter:
            Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: