Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11648

camel-mongodb-gridfs - Created document cannot be read by the new MongoDB GridFS API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.19.1
    • 2.19.3, 2.20.0
    • camel-mongodb
    • None
    • Unknown

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              mgyongyosi Mihály Gyöngyösi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: