Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-208

Read Only Users & GridFS

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      When a user does GridFS lookup, many (most? all?) drivers kick in a "ensureIndex" operation to ensure the queries will hit an index to improve performance.

      This does not work for readOnly users, and will likely result in an error/exception being issued/thrown prohibiting the user to continue.

      The upcoming GridFS spec added the following:

      If this operation fails with a “not authorized” error while authenticated as a read-only user, GridFS should recover and continue. It is valid to use GridFS as a read-only user.

      Attachments

        Activity

          People

            barrie Barrie Segal
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: