Mihály Gyöngyösi created CAMEL-11648:
----------------------------------------

             Summary: 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
            Priority: Minor


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)

Reply via email to