[SERVER-77024] Shell collection creation broken when name is a js property identifier Created: 11/May/23  Updated: 13/Nov/23  Resolved: 27/Oct/23

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Pierlauro Sciarelli Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-82538 Complete TODO listed in SERVER-77024 Needs Scheduling
Assigned Teams:
Server Development Platform
Operating System: ALL
Participants:

 Description   

Reproducible:

db> use test
switched to db test
test> db.getCollection('toString')
[Function: toString]
test> db.getCollection("valueOf")
[Function: valueOf]

Very low priority because this happens only in the mongo binary used internally for testing. Already fixed in this commit in user-facing mongosh.


Generated at Thu Feb 08 06:34:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.