[SERVER-16047] listCollections silently ignores invalid filter format Created: 10/Nov/14  Updated: 05/Mar/16  Resolved: 05/Mar/16

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: 2.7.8
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Randolph Tan Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-16659 Cleanup pass for CursorManager/getMor... Closed
Participants:

 Description   

To aid in usability, it should return an error.

Example:

db.runCommand({ listCollections: 1, filter: 'invalid' });



 Comments   
Comment by Max Hirschhorn [ 05/Mar/16 ]

This was fixed as part under SERVER-16659 with 95c60a4.

> db.runCommand({ listCollections: 1, filter: 'invalid' })
{ "ok" : 0, "errmsg" : "\"filter\" must be an object", "code" : 2 }

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