Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2593

Fix special handling of $admin filenames

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 100.0.2
    • Component/s: mongorestore
    • Labels:
      None

      Description

      When --db and --dumpDbUsersAndRoles are both specified, mongodump will dump out special files for the users and roles of a single db. These files are prefixed with $ so they aren't mistaken for actual collections. We need to change the special handling in mongorestore to specifically check for three filenames so that they don't get confused for the long collection name filenames that also include %24 ($):

      $admin.system.users
      $admin.system.roles
      $admin.system.version

        Attachments

          Activity

            People

            Assignee:
            evgeni.dobranov Evgeni Dobranov
            Reporter:
            tim.fogarty Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: