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

Special Character in Database Name Doesn't Work as Expected in mongosh

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: 1.23.0
    • Component/s: Compass
    • Labels:
      None
    • Not Needed

      This is for Compass 1.23.0-beta.2 but doesn't exist in the Jira field tag.

      In mongosh

      > use %3Cscript%3Ealert(1)%3C%2Fscript%3E
      > db.asdf.insertOne("hello":"test")

      generates an error, but the "%" character is allowed.

      https://docs.mongodb.com/manual/reference/limits/#restrictions-on-db-names

      In Compass UI, creating the database and adding a document is successful. The behavior is inconsistent.

      Related to https://jira.mongodb.org/browse/CLOUDP-70233

            Assignee:
            Unassigned Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: