[CSHARP-1644] Support custom GridFS file id values Created: 02/May/16  Updated: 23/Sep/16  Resolved: 25/May/16

Status: Closed
Project: C# Driver
Component/s: GridFS
Affects Version/s: 2.2.3
Fix Version/s: 2.3

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-299 Custom GridFS files._id Closed
Backwards Compatibility: Fully Compatible

 Description   

The 1.x version of the .NET driver allowed applications to use any value they wanted to for the file id of an uploaded GridFS File. The GridFS spec used to guide development of the 2.x version of the .NET driver GridFS API specified that the file id MUST be of type ObjectId and that the value would be generated by the driver itself.

It has since become evident that there are valid use cases for allowing the application to set its own value for the file id when uploading a GridFS file, including using other types of file id besides ObjectId.

The GridFS spec is being revised to allow applications to provide custom file id values when uploading GridFS files. The .NET driver will be updated accordingly.



 Comments   
Comment by Githook User [ 25/May/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1644: Replace some calls to _bsonValueBucket with calls to base.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/0ad339c4c889076680245c3786bddf3ddd2654e3

Comment by Githook User [ 25/May/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1644: Added IGridFSFileInfoSerializer interface.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/050528374b0e25beec119860994705ad2eb12635

Comment by Githook User [ 25/May/16 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1644: Use new SerializerRegistry property in GridFSBucketOptions.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3ef15313b87c3f428e681048320a8b58597bfbef

Comment by Githook User [ 25/May/16 ]

Author:

{u'name': u'Robert Stam', u'email': u'Robert Stam'}

Message: CSHARP-1644: Support custom GridFS file id values.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/06c25e6eaa5fc9e27b361de07f52eaa6f2c8e255

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