SatyamPandey-07 opened a new pull request, #9194: URL: https://github.com/apache/camel-quarkus/pull/9194
# PR: Fix REST DSL Response Marshalling Failure Swallowing and Enable ObjectMapper Auto-Discovery ## Related Issue Fixes #9193 ## Changes Proposed * **`camel-quarkus-jackson`**: Configured REST DSL data format defaults to set `autoDiscoverObjectMapper=true` so that the runtime automatically picks up Quarkus's CDI-configured `ObjectMapper` (enabling standard features like `JavaTimeModule` out-of-the-box). * **`camel-quarkus-platform-http` / `camel-quarkus-rest`**: Ensured that unhandled exceptions encountered during REST response marshalling are properly propagated onto the `Exchange` rather than silently swallowed, allowing the standard error handling pipeline to return an HTTP 500 status code. * **`integration-tests/rest`**: Added integration test coverage verifying that POJOs with `java.time` types serialize successfully and that unmarshalable response types result in an HTTP 500 instead of HTTP 200 with an empty body. ## How Has This Been Tested? Please describe the tests that you ran to verify your changes. * [x] JVM mode unit and integration tests passed (`mvn test -pl integration-tests/rest`) * [x] Verified error propagation and HTTP 500 response on marshalling failure * [x] Verified automatic discovery of Quarkus `ObjectMapper` with `JavaTimeModule` ## Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
