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

copyDatabase fails authentication when source db has legacy system.users collection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.4
    • Security
    • None
    • ALL
    • Hide

      1. Upgrade database with legacy authentication (i.e. system.users collection in the non-admin db)
      2. In a second server try to run the db.copyDatabase command with correct authentication/authorization.

      Show
      1. Upgrade database with legacy authentication (i.e. system.users collection in the non-admin db) 2. In a second server try to run the db.copyDatabase command with correct authentication/authorization.

    Description

      All databases running latest MongoDB 2.6.4 on Ubuntu.

      After upgrading from 2.4 -> 2.6 I tried to use the db.copyDatabase() command to copy a remote database from a production server to a test server, but always get an error that I don't have permission on the "system.users" collection. I am not able to drop this legacy collection, even when user has role 'root'.

      If I create a brand new database on the remote machine with the same user authorization, I can copy this successfully. I have also tried every permutation of db.copyDatabase and the copyDB command and granted both remote and local users every possible role including root.

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            btrombley Ben Trombley
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: