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

Forbid renaming system collections

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 2.0.5
    • Fix Version/s: Backlog
    • Component/s: Admin
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Linked BF Score:
      15

      Description

      I am using the official C# driver v1.4.2. I noticed that I cannot remove the system collection `system.indexes` from my database (this is rather expected) but I can rename this collection (this is rather unexpected).

      > db.system.indexes.renameCollection("old_indexes")
      { "ok" : 1 }
      > show collections
      old_indexes
      

      Discussion: https://groups.google.com/forum/#!topic/mongodb-user/C0AksmnNVdY

      I've been recommended to submit the issue, so do I.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-security Backlog - Security Team
              Reporter:
              nightroman Roman Kuzmin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: