[DRIVERS-208] Read Only Users & GridFS Created: 12/Mar/15  Updated: 09/Jun/15  Resolved: 23/Mar/15

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 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.


Generated at Thu Feb 08 08:21:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.