[CSHARP-504] GridFS doesn't work in read-only mode. Created: 20/Jun/12  Updated: 02/Apr/15  Resolved: 20/Jun/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.4.2
Fix Version/s: 1.5

Type: Bug Priority: Major - P3
Reporter: Bo Bendtsen Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: driver, gridfs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ensureIndex is called for all operations. Also for read-only connections.
Steps to reproduce:

  • Connect to the db with a read-only user
  • try to read a file.


 Comments   
Comment by Kenneth Brøckner Barslund [ 21/Jun/12 ]

Feels good to have contributed to the open source community for the first time ever.

Comment by Robert Stam [ 20/Jun/12 ]

Essentially adopted the suggested patch but in a slightly different way and also there were other read-only operations as well that were calling EnsureIndexes.

Comment by Bo Bendtsen [ 20/Jun/12 ]

Patch suggestion: https://github.com/bobend/mongo-csharp-driver/commit/98f8bee45a982554ff0deb7a5288e64cb5cae5e9

Generated at Wed Feb 07 21:37:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.