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

Claus Ibsen updated CAMEL-24594:
--------------------------------
    Component/s: camel-core

> RestBindingAdvice response marshalling failure is silently swallowed
> --------------------------------------------------------------------
>
>                 Key: CAMEL-24594
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24594
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: James Netherton
>            Priority: Minor
>             Fix For: 4.18.5, 4.22.1, 4.23.0
>
>
> With bindingMode(json) on the REST DSL, if Jackson cannot marshal the 
> response body, the caller receives HTTP 200 with an empty body and 
> Content-Type: text/plain; charset=utf-8. No error is logged, no exception 
> reaches the route's error handler, and the status code stays 200.
> The silent 200 is the actual problem: a serialization failure is 
> indistinguishable from a successful empty response, so a client (or a browser 
> app) just sees "no data" and everything downstream fails in confusing ways. 
> We lost a full day to this after a platform upgrade.
> More details with reproducer can be found here:
> https://github.com/apache/camel-quarkus/issues/9077



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

Reply via email to