[
https://issues.apache.org/jira/browse/CAMEL-24594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110764#comment-18110764
]
Claus Ibsen commented on CAMEL-24594:
-------------------------------------
See unit test
https://github.com/apache/camel/commit/e26282aa61d063d25adbaa2f7153bf3e193f63cc
> RestBindingAdvice response marshalling failure is silently swallowed
> --------------------------------------------------------------------
>
> Key: CAMEL-24594
> URL: https://issues.apache.org/jira/browse/CAMEL-24594
> Project: Camel
> Issue Type: Bug
> Reporter: James Netherton
> Priority: Minor
> Fix For: 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)