mongorestore on server with --auth allows restore without credentials of colls with no index

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Tools
    • Minor Change
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      2 different cases:

      No index:

      • dump collection with no index
      • start server with auth
      • mongorestore with no arguments
      • collection exists

      If the collection has an index, I get the following error (which should be improved):
      assertion: 13106 nextSafe():

      { $err: "unauthorized db:test lock type:-1 client:127.0.0.1", code: 10057 }

            Assignee:
            siddharth.singh@10gen.com
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: