Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9518

Docs for SERVER-22577: mmapv1 should not allow creation of database names containing $

    XMLWordPrintableJSON

Details

    Description

      Engineering Ticket Description:

      This was first discovered by jonathan.abrahams in the linked ticket.

      When we do an insert, a DatabaseCatalogEntry is created implicitly before validating the namespace string (batch_executor.cpp). The insert would fail after the DatbaseCatalogEntry is created.

      For KVEngines, creating a DatabaseCatalogEntry is basically a noop (kv_storage_engine.cpp), so no harm is done.

      For mmapv1, a data file with an invalid name would be created in (mmap_v1_database_catalog_entry.cpp). Subsequent calls to show dbs would require getting the list of data files and this invalid one will show up.

      Attachments

        Activity

          People

            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 15 weeks ago