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

Add a createGridFS bucket command

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: GridFS
    • None
    • Query Execution

      In 2.6 we'll have customizable roles, and so not every user who will be able to insert documents into a GridFS bucket will have permission to create the prerequisite unique index on

      {files_id:1, n:1}

      .

      Proposed fix: add a createGridFS bucket command, so that admins can give users the ability to create GridFS buckets without having privileges to build indexes generally.

      Driver changes needed: drivers should be changed to use createGridFS, then maybe fail over to trying the ensureIndex. (Eventually, the ensureIndex call could be dropped from drivers, too.)

      Docs changes needed: document the new command, maybe add a release note that taking away createIndex from a user will require upgrading drivers in order to use GridFS.

      Tools changes needed: mongofiles, I guess.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: