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

Restoring single BSON file should use db set in URI

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 100.3.1
    • Affects Version/s: None
    • Component/s: mongorestore
    • None

      NSOptions in mongorestore have -d and -c options that are mirrored by the namespace options in mtc ToolOptions. Although the namespace options are normalized with the URI, the NSOptions are not. This leads to mongorestore not correctly detecting when a database has been set on the URI. We should refactor mongorestore to use the namespace options for database/collection instead of the NSOptions.

            Assignee:
            varsha.subrahmanyam@mongodb.com Varsha Subrahmanyam (Inactive)
            Reporter:
            tim.fogarty@mongodb.com Tim Fogarty
            Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: