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

pcre verb support

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 3.6.0, 4.0.0
    • Fix Version/s: 3.6.6, 4.0.1, 4.1.1
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Query 2018-06-18, Query 2018-07-02

      Description

      Docker container from mongo:3.4 image. Works as expected.
      $ docker run -itd --rm --name mongo.test mongo:3.4
      $ docker exec -it mongo.test mongo
      MongoDB shell version v3.4.14
      connecting to: mongodb://127.0.0.1:27017
      MongoDB server version: 3.4.14
      ... warnings ...
      > db.test.find({ test:

      { $regex: '(*UCP)test' }

      })
      > // no error

      Docker container from mongo:3.6 image. Throws error.
      $ docker run -itd --rm --name mongo.test mongo:3.6
      $ docker exec -it mongo.test mongo
      MongoDB shell version v3.6.3
      connecting to: mongodb://127.0.0.1:27017
      MongoDB server version: 3.6.3
      ... warnings ...
      > db.test.find({ test:

      { $regex: '(*UCP)test' }

      })
      Error: error:

      { "ok" : 0, "errmsg" : "Regular expression is invalid: (*VERB) not recognized or malformed", "code" : 2, "codeName" : "BadValue" }

      >

      centos7 build of 3.6 from https://repo.mongodb.org/ yields the same error as docker image.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: