• Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.6.6, 4.0.1, 4.1.1
    • Affects Version/s: 3.6.0, 4.0.0
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Query 2018-06-18, Query 2018-07-02

      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.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            x86xlat Alexander Abolishin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: