Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1703

mongosh crash when converting invalid regular expression in db.currentOp()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.3
    • Affects Version/s: 1.10.5
    • Component/s: None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration Milky Way
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      While running db.currentOp() the command failes with error related to following

      Uncaught:
      SyntaxError: Invalid regular expression: /^(?i)\Qchho0842\E/: Invalid group 

      Additional Notes

      The issue can be seen for Mongod version 4.4.11 and mongosh version 1.10.5

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            r.sharma@mongodb.com Rahul Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: