Uploaded image for project: 'MongoDB for IntelliJ Plugin'
  1. MongoDB for IntelliJ Plugin
  2. INTELLIJ-97

Running queries with parameterised or empty collections throw an exception in mongosh

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 0.0.0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration Light Year
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      When we are modifying a query, we can modify any of the references to a database, collections or fields, even writing them as empty strings. When we try to run a query with an empty database, collection or field, mongosh throws an exception that we don't capture and this shows in the IDE.

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      Write a new Java query and when the index check has happened, remove the collection name.

      Expected Results

      We remove the index check result and no exception happens.

      Actual Results

      We keep the index check result and an exception happens.

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: