[SERVER-15792] should check that collection name is present in count command Created: 23/Oct/14  Updated: 19/Nov/14  Resolved: 27/Oct/14

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 2.7.8
Fix Version/s: 2.8.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Geert Bosch Assignee: Geert Bosch
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
Steps To Reproduce:

db.runCommand("count")

Participants:

 Description   

Running the count command without collection name causes an invariant failure.



 Comments   
Comment by Githook User [ 27/Oct/14 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-15792: check collection name in count command

Also updates jstest to test this.
Branch: master
https://github.com/mongodb/mongo/commit/23bd6572e3affc2b2fbe97fc1fef87e191c6a5b9

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