[
https://issues.apache.org/jira/browse/CAMEL-23651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino resolved CAMEL-23651.
--------------------------------------
Resolution: Fixed
Fixed across all three release lines:
- main: apache/camel#23913 (4.21.0)
- camel-4.18.x: apache/camel#23923 (4.18.3)
- camel-4.14.x: apache/camel#23990 (4.14.8)
muteException now defaults to true in camel-netty-http and camel-undertow,
aligning them with the other HTTP server components (camel-http, camel-jetty,
camel-servlet, camel-platform-http).
_Claude Code on behalf of Andrea Cosentino_
> camel-netty-http and camel-undertow: align muteException default with the
> other HTTP components
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-23651
> URL: https://issues.apache.org/jira/browse/CAMEL-23651
> Project: Camel
> Issue Type: Improvement
> Components: camel-netty-http, camel-undertow
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 4.14.8, 4.18.3, 4.21.0
>
>
> h4. Background
> The muteException consumer option is inconsistent across the HTTP server
> components:
> * camel-http, camel-jetty and camel-servlet (via HttpCommonComponent) default
> muteException to true.
> * camel-platform-http defaults muteException to true.
> * camel-netty-http and camel-undertow default muteException to false.
> With muteException=false a consumer-side processing failure returns the
> exception stack trace in the response body as text/plain; with
> muteException=true the response body is empty. The two groups behave
> differently out of the box.
> h4. Proposal
> Align camel-netty-http and camel-undertow with the other HTTP server
> components by defaulting muteException to true.
> * camel-netty-http: initialise the field in NettyHttpConfiguration to true,
> set the same default in NettyHttpComponent, add defaultValue = "true" to the
> @UriParam, and regenerate the catalog metadata.
> * camel-undertow: set the default in UndertowComponent to true, add
> defaultValue = "true" to the @UriParam, and regenerate the catalog metadata.
> h4. Compatibility
> This changes the default behaviour. Users who rely on the exception stack
> trace being present in the response body must set muteException=false
> explicitly after the upgrade. The change must ship with an upgrade-guide note
> on each affected release line.
> h4. Backport
> Backport to 4.18.x and 4.14.x. The option and its current false default are
> present on both branches.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)