James Netherton created CAMEL-24594:
---------------------------------------
Summary: 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
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)