[SERVER-1851] mongodump throwing improper error message with authentication enabled Created: 25/Sep/10  Updated: 15/Nov/21  Resolved: 16/Jan/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.2
Fix Version/s: 1.7.5

Type: Bug Priority: Minor - P4
Reporter: Andreas Jung Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOSX


Operating System: ALL
Participants:

 Description   

mongod running with --auth parameter

Connecting without user/password parameters throws a non-speaking
error message. A proper error message would "no authentication credentials provided"
instead of:

ajung@blackmoon:~/sandboxes/occ> bin/mongodump -h b --port 10200 -d foo
connected to: b:10200
DATABASE: foo to dump/foo
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Aborted



 Comments   
Comment by auto [ 16/Jan/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: handle $err in mongodump SERVER-1851
https://github.com/mongodb/mongo/commit/7a1c5d322ce447d810f7027a1851ff7f425aa142

Generated at Thu Feb 08 02:58:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.