[SERVER-1233] mongofiles / filemd5 needs to support bindata types 0 and 2 Created: 14/Jun/10  Updated: 12/Jul/16  Resolved: 14/Jun/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.3

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

old and correct:
$ mongofiles put README
connected to: 127.0.0.1
added file:

{ _id: ObjId(4c15f2ae7ce5d0cc6d54e02d), filename: "README", length: 1091, chunkSize: 262144, uploadDate: new Date(1276506798729), md5: "28bde8f3157148210d0129a986b1b8e5" }

done!

new and broken:
$ ./mongofiles put README
connected to: 127.0.0.1
added file:

{ _id: ObjectId('4c15f2bedd9a57c4a77017d8'), filename: "README", length: 1091, chunkSize: 262144, uploadDate: new Date(1276506814660), md5: "b492997029d1e1d15f5146b68f55be47" }

done!



 Comments   
Comment by Eliot Horowitz (Inactive) [ 16/Jun/10 ]

Nothing should use subtype 0 as default yet.
Everything should support read only 0 support for a while - then change writes.

Comment by Michael Dirolf [ 16/Jun/10 ]

just switching to eliot to make sure he sees my question

Comment by Michael Dirolf [ 16/Jun/10 ]

eliot: what should drivers do about this? switch default subtype to 0 but continue to use subtype 2 for gridfs?

just changing the default will break interop between new versions of driver gridfs code and old versions of the server, as far as i can tell. trying to get a pymongo release out and want to make sure this bindata subtype switch is handled properly.

Comment by auto [ 14/Jun/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'redbeard0531@gmail.com'}

Message: fix GridFS. Add binDataClean to handle subtype 2. SERVER-1233
http://github.com/mongodb/mongo/commit/2f94443140b7f9c0efd862fddf556b9af29008df

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