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

system.users can be renamed to regular collections and vice versa

    XMLWordPrintableJSON

Details

    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-06-12, Execution EMEA Team 2023-06-26, Execution EMEA Team 2023-07-10, Execution EMEA Team 2023-07-24, Execution EMEA Team 2023-08-21, Execution EMEA Team 2023-09-04, Execution EMEA Team 2023-09-18, Execution EMEA Team 2023-10-02
    • 5

    Description

      We are able to rename test.system.js to test.mycoll and vice versa. This seems odd and maybe shouldn't be allowed.

      db.system.js.insert({a: 2}); // system.js is a special system collection that users are allowed to write to.
      db.system.js.renameCollection("mycoll"); // OK
      db.mycoll.renameCollection("system.js"); // OK
      

      Please backport this if you decide to do it.

      Attachments

        Activity

          People

            josef.ahmad@mongodb.com Josef Ahmad
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: