[SERVER-7920] getCollectionNames function may return empty string in the list Created: 13/Dec/12  Updated: 11/Jul/16  Resolved: 04/Sep/13

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Minor - P4
Reporter: Zhongliang.Chen Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: commands, pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-7919 getCollectionNames function may retur... Closed
Operating System: ALL
Steps To Reproduce:

1.mongod start with --auth
2.create a Dbclient object without auth
3.invoke getCollectionNames function, the return list contain an empty string

Participants:

 Description   

When auth is enable, unauth client invokes getCollectionNames function will return empty string in the list.



 Comments   
Comment by auto [ 04/Sep/13 ]

Author:

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

Message: SERVER-7920 Make getCollectionNames function in C++ driver throw exception on error
Branch: master
https://github.com/mongodb/mongo/commit/dd3a6cf40e5259ad0ce5b3eb41fae9cd76f6bf95

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