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

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Vishnu Kaushik
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: