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

copydb command fails with 2.6 authorization with local source

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • 2.5.4
    • Security
    • None
    • Fully Compatible

    Description

      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"
      }

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: