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

Marco Carletti updated CAMEL-20530:
-----------------------------------
    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 
{code:bash}
mvn clean verify -Pcsb-4.0 {code}
while in the current snapshot (4.5.0-SNAPSHOT) the exception is thrown
{code:bash}
mvn clean verify {code}
{code:java}
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{code}

  was:
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


> camel-mongodb: unable to convert InputStream to org.bson.conversions.Bson
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-20530
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20530
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb
>    Affects Versions: 4.4.0
>            Reporter: Marco Carletti
>            Priority: Major
>              Labels: regression
>
> 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 
> {code:bash}
> mvn clean verify -Pcsb-4.0 {code}
> while in the current snapshot (4.5.0-SNAPSHOT) the exception is thrown
> {code:bash}
> mvn clean verify {code}
> {code:java}
> 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{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to