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

Shell collection creation broken when name is a js property identifier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • Shell
    • None
    • Server Development Platform
    • ALL

    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.

      Attachments

        Activity

          People

            backlog-server-devplatform Backlog - Server Development Platform Team (SDP)
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: