[SERVER-19033] find command should validate 1st parameter Created: 18/Jun/15  Updated: 05/Feb/16  Resolved: 18/Jun/15

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.1.5

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: David Storch
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.foo.runCommand({"find":1});

Sprint: Quint Iteration 5
Participants:

 Description   

The first parameter (field name "find") is used to supply the namespace name. If you pass a non-string for this field, the server eventually masserts when it tries to acquire a read lock. Instead, it should validate the field type as it currently does for all the other fields to the find command.



 Comments   
Comment by Githook User [ 18/Jun/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-19033 find command now validates the type of its first parameter
Branch: master
https://github.com/mongodb/mongo/commit/cb657e6dbbbe7feb94a06c4a1bc0a09f0782d274

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