tmielke opened a new pull request, #30719:
URL: https://github.com/apache/camel/pull/30719

   ## Summary
   
   - `camel-platform-http-vertx` maps the fields of an 
`application/x-www-form-urlencoded` request, and the request's query 
parameters, into message headers, and later copies every message header back 
onto the HTTP response. When a field/parameter name is not a valid RFC 9110 
HTTP header token (a space, a comma, a colon, or the whole text of a bare `curl 
-d "some text"` body), Vert.x's `HttpServerResponse.putHeader` throws 
`IllegalArgumentException`, and the client gets a 500 **after the route has 
already run**.
   - `VertxPlatformHttpSupport.copyMessageHeadersToResponse` now skips such a 
header, logging it at DEBUG, instead of failing the whole response. This reuses 
`HttpHelper.isValidHeaderName` from `camel-http-base` (already a dependency of 
this module) — the same check CAMEL-27235 (#30509) added for 
`camel-http-common`, `camel-netty-http` and `camel-http`. No request-side 
decoding change was needed here: Vert.x already treats a form field without `=` 
as a name with an empty value, unlike the binding fixed in CAMEL-27235.
   - Updates `testResponseBadQueryParamErrorHandled` (added by CAMEL-20873 for 
generic `writeResponse` failure handling), which had encoded the old 500 as the 
expected outcome for this exact code path. Renamed to 
`testResponseSkipsHeaderWithInvalidName` and extended with the other repro 
cases from the issue and its comments (invalid query param, invalid form field 
name, a form body without `=`, and a control case with a valid field name).
   - Adds an upgrade guide entry.
   
   Fixes [CAMEL-27236](https://issues.apache.org/jira/browse/CAMEL-27236).
   
   ## Test plan
   
   - [x] `mvn test` in `components/camel-platform-http-vertx` — 38/38 tests 
pass, including the new/updated regression test
   - [x] `mvn clean install -DskipTests` — full reactor build passes
   - [x] `mvn formatter:format impsort:sort` — no formatting diffs
   
   _Claude Code on behalf of tmielke_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to