You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/08/07 20:15:01 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16117184#comment-16117184 ]
ASF GitHub Bot commented on CAMEL-11648:
----------------------------------------
GitHub user mgyongyosi opened a pull request:
https://github.com/apache/camel/pull/1876
CAMEL-11648: gridfs skip metadata field if it is null
PR for https://issues.apache.org/jira/browse/CAMEL-11648
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgyongyosi/camel camel-mongodb-gridfs-skip-metadata-if-null
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1876.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1876
----
commit 71cc69d73af2ddcd87d48dbf31b85b119afee1af
Author: mgyongyosi <gy...@gmail.com>
Date: 2017-08-07T20:02:49Z
CAMEL-11648: skip metadata when it is null
----
> 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)