[SERVER-4972] mongorestore on server with --auth allows restore without credentials of colls with no index Created: 15/Feb/12  Updated: 15/Aug/12  Resolved: 04/Jun/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.0.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: siddharth.singh@10gen.com
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

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 }

 Comments   
Comment by auto [ 04/Jun/12 ]

Author:

{u'login': u'singhsiddharth', u'name': u'Siddharth Singh', u'email': u'singhsiddharth@gmail.com'}

Message: SERVER-4972 mongorestore restores without no auth

Test for mongorestore on server with --auth allows restore without
credentials of colls with no index
Branch: master
https://github.com/mongodb/mongo/commit/05e09a4763902a17c76b091b2e3f292948199fcd

Generated at Thu Feb 08 03:07:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.