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

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

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0
    • 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

      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.

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

              Created:
              Updated:
              Resolved: