You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/08/08 02:30:01 UTC

[jira] [Resolved] (CAMEL-11648) camel-mongodb-gridfs - Created document cannot be read by the new MongoDB GridFS API

     [ https://issues.apache.org/jira/browse/CAMEL-11648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-11648.
---------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.19.3
                   2.20.0

Thanks for the PR

> camel-mongodb-gridfs - Created document cannot be read by the new MongoDB GridFS API
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-11648
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11648
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb
>    Affects Versions: 2.19.1
>            Reporter: Mihály Gyöngyösi
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.20.0, 2.19.3
>
>
> The new MongoDB GridFS API (http://mongodb.github.io/mongo-java-driver/3.5/driver/tutorials/gridfs/) throws an exception when my application (not Camel based) iterates over the GridFS documents created by Camel's {{camel-mongodb-gridfs}} component.
> The problem: the current GridFSProducer adds the "metadata" field regardless it is null. Referring to https://jira.mongodb.org/browse/JAVA-2577 the document should not contain a metadata field if the field is null.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)