Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.4.0
-
Unknown
Description
Mongodb routes are unable to convert from InputStream to org.bson.conversions.Bson, while in previous version it was possible.
Automatically convert from IS to Bson/Document can be useful in case the route body comes from a REST endpoint, or any other scenarios using InputStream
A very trivial reproducer is https://github.com/mcarlett/mongodbtest
it is possible to verify that it works on previous version (here 4.0.0) running
mvn clean verify -Pcsb-4.0
while in the current snapshot (4.5.0-SNAPSHOT) the exception is thrown
mvn clean verify
org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.camel.converter.stream.ByteArrayInputStreamCache to the required type: org.bson.conversions.Bson
Attachments
Issue Links
- links to