Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77024

Shell collection creation broken when name is a js property identifier

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Server Development Platform
    • ALL

      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.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: