[JAVA-2175] GridFSFile and users codecs can cause errors. Created: 22/Apr/16  Updated: 19/Oct/16  Resolved: 27/Apr/16

Status: Closed
Project: Java Driver
Component/s: GridFS
Affects Version/s: 3.1.0
Fix Version/s: 3.3.0

Type: Bug Priority: Minor - P4
Reporter: Ross Lawley Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-1282 Create new async GridFS API Closed

 Description   

The GridFSFile mapping requires Java Date but users may be using the newer Java 1.8 date types.



 Comments   
Comment by Githook User [ 27/Apr/16 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added Codec for GridFSFile

GridFSFile requires certain types eg. Date, but takes a users Codec which may
have custom type mapping. Metadata and Extra elements are decoded using the
users codec, all other fields are decoded using the type safe BsonDocumentCodec.

JAVA-2175 (refs JAVA-1282)
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ff0c5d189cf4684517e9ee4df8b94c0224f66e60

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