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

camel-mongodb: unable to convert InputStream to org.bson.conversions.Bson

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              mcarlett Marco Carletti
              mcarlett Marco Carletti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: