{"comment":{"url":"https://api.github.com/repos/rozza/mongo-java-driver/comments/12590529","html_url":"https://github.com/rozza/mongo-java-driver/commit/6c9e2711f3ba82f4d1ac4d9d3cac1f575580566d#commitcomment-12590529","id":12590529,"user":{"login":"jyemin","id":1111546,"avatar_url":"https://avatars.githubusercontent.com/u/1111546?v=3","gravatar_id":"","url":"https://api.github.com/users/jyemin","html_url":"https://github.com/jyemin","followers_url":"https://api.github.com/users/jyemin/followers","following_url":"https://api.github.com/users/jyemin/following{/other_user}","gists_url":"https://api.github.com/users/jyemin/gists{/gist_id}","starred_url":"https://api.github.com/users/jyemin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyemin/subscriptions","organizations_url":"https://api.github.com/users/jyemin/orgs","repos_url":"https://api.github.com/users/jyemin/repos","events_url":"https://api.github.com/users/jyemin/events{/privacy}","received_events_url":"https://api.github.com/users/jyemin/received_events","type":"User","site_admin":false},"position":62,"line":136,"path":"driver/src/main/com/mongodb/client/gridfs/GridFSBucketImpl.java","commit_id":"6c9e2711f3ba82f4d1ac4d9d3cac1f575580566d","created_at":"2015-08-07T16:17:44Z","updated_at":"2015-08-07T16:17:44Z","body":"We talked about this earlier, but I still need some clarification on the line of reasoning here: why does the fact that we're requiring, in GridFSUploadOptions, metadata to be a Document rather than Bson change whether we encode that metadata with a user-supplied registry or with the default one?  When it was Bson, someone could at least set metadata to:\r\n\r\n      new Document(\"originalFileCreationTime\", Instant.now())   // use Joda\r\n\r\nand it would have worked so long as they constructed the proper codec registry, but now that's no longer possible.  "}}