[SERVER-18239] dumpauth.js uses ambiguous --db/--collection args Created: 28/Apr/15  Updated: 25/Jan/17  Resolved: 28/Apr/15

Status: Closed
Project: Core Server
Component/s: Security, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.0.3, 3.1.2

Type: Bug Priority: Major - P3
Reporter: Michael O'Brien Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:

 Description   

In dumpauth.js:

x = runMongoProgram( "mongodump",
                     "--db", baseName,
                     "--authenticationDatabase=admin",
                     "-u", "testuser",
                     "-p", "testuser",
                     "-h", "127.0.0.1:"+m.port,
                     "--collection", "testcol" );

This is incorrect because the test is actually writing its test data into the "admin" database, and the "baseName" database is never actually created.
The test collection itself is actually named baseName+".testcol".



 Comments   
Comment by Githook User [ 28/Apr/15 ]

Author:

{u'username': u'mpobrien', u'name': u"mike o'brien", u'email': u'mpobrien005@gmail.com'}

Message: SERVER-18239 dumpauth.js should use correct db/collection names

Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com>
(cherry picked from commit 3140bfa914859b05ae04f99474b34c73c1fcb019)

Conflicts:
jstests/tool/dumpauth.js
Branch: v3.0
https://github.com/mongodb/mongo/commit/5a1b51c847f9e4c466cecbbff0ac726152a69ee7

Comment by Githook User [ 28/Apr/15 ]

Author:

{u'username': u'mpobrien', u'name': u"mike o'brien", u'email': u'mpobrien005@gmail.com'}

Message: SERVER-18239 dumpauth.js should use correct db/collection names

Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/3140bfa914859b05ae04f99474b34c73c1fcb019

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