Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6082

RegExp sometimes breaks Compass

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      macOS Monterey (v12.5.1) ARM64
      MongoDB Compass (v1.32.6)
      MongoDB db version v5.0.7 (Ubuntu server)

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Please be sure to attach relevant logs with any sensitive data redacted.

      Make it so a poorly written RegExp() query doesn't prevent a query from executing until the tab is re-opened.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Make a `RegExp()` query in MongoDB compass and use more than one option (e.g. `'ig'`) and it will break the query and make the "Find" button not respond. Even if you fix the query it will still not respond until you close and re-open the tab and use only one RegExp() string option. 

       

       

      Expected Results

      What do you expect to happen?

      Query should be able to execute, once fixed, without having to close the tab.

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

        1. MongoDB-Compass-RegExp-bug.gif
          4.11 MB
          Benji Asperheim

            Assignee:
            Unassigned Unassigned
            Reporter:
            basperheim@gmail.com Benji Asperheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: