[SERVER-10215] Cannot use $where expressions without a client and a namespace Created: 15/Jul/13  Updated: 15/Sep/16  Resolved: 15/Sep/16

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

Type: Bug Priority: Minor - P4
Reporter: Spencer Jackson Assignee: Spencer Jackson
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:

Create a tool, which exists in an executable outside of the core product.
Use the MatchExpressionParser to parse a query which contains a $where clause.
Receive a bad status with the text "BadValue no current client needed for $where".

Participants:

 Description   

The WhereMatchExpression uses the thread's Client object to acquire a namespace for the globalScriptEngine's scope. However, a namespace does not always exist, such as in the case where one wishes to match against a BSON object.



 Comments   
Comment by Spencer Jackson [ 15/Sep/16 ]

I'm going to close this as Works by Design, because this use case is no longer required.

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