[SERVER-2867] Mongoimport reports success even if it fails to authenticate Created: 30/Mar/11  Updated: 12/Jul/16  Resolved: 27/Jul/11

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.8.0
Fix Version/s: 1.9.2

Type: Bug Priority: Minor - P4
Reporter: Jared Rosoff Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

If you have authentication enabled and you try to mongoimport data without specifying a username / password, mongo import will report success (e.g. "imported N objects") even tho it failed to import a single object. Seems like if we fail to authenticate, it should report an error and not try to import docs.



 Comments   
Comment by auto [ 26/Jul/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Make tools fail if they connect to a db requiring authentication but don't
supply any credentials: SERVER-2867
Branch: master
https://github.com/mongodb/mongo/commit/3da3871e653ba2cfdaa2183da5bbf9fc563e817e

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