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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.10.5
    • Component/s: None
    • Labels:
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 2

      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:
            Unassigned Unassigned
            Reporter:
            r.sharma@mongodb.com Rahul Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: