[COMPASS-4420] Special Character in Database Name Doesn't Work as Expected in mongosh Created: 18/Sep/20 Updated: 18/Sep/20 Resolved: 18/Sep/20 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Compass |
| Affects Version/s: | 1.23.0 |
| Fix Version/s: | No version |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Felicia Hsieh | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Documentation Changes: | Not Needed |
| Description |
|
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 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 |
| Comments |
| Comment by Massimiliano Marcon [ 18/Sep/20 ] |
|
felicia.hsieh you are using the wrong syntax for insertOne. insertOne takes an object as its first argument: |