Pasquale Congiusti created CAMEL-16906:
------------------------------------------

             Summary: Platform-http components fail when using unmarshal
                 Key: CAMEL-16906
                 URL: https://issues.apache.org/jira/browse/CAMEL-16906
             Project: Camel
          Issue Type: Bug
          Components: camel-platform-http-vertx
    Affects Versions: 3.12.0
            Reporter: Pasquale Congiusti
            Assignee: Pasquale Congiusti


When we run a route which is using platform-http component and we try to 
unmarshal to json (and I suspect also any other dataformat), there is a failure 
due to a missing conversion type.

For example:
{code}
    from("platform-http:/hello?httpMethodRestrict=GET").
      setBody(simple("{\"hello\": \"world\"}"))
      .unmarshal().json();
{code}

Will fail because there is a [mandatory conversion from Map to 
ByteBuffer|https://github.com/apache/camel/blob/main/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpSupport.java#L183]
 that is failing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to