Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10215

Cannot use $where expressions without a client and a namespace

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Querying
    • None
    • Fully Compatible
    • ALL
    • Hide

      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".

      Show
      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".

    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.

      Attachments

        Activity

          People

            spencer.jackson@mongodb.com Spencer Jackson
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: