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

   ## Backport of #29845
   
   Backport of #29845 (CAMEL-26922: camel-atmosphere-websocket - the open, 
close and error events carry the query parameters of their own connection) onto 
`camel-4.22.x`.
   
   **Original PR:** #29845 - CAMEL-26922: camel-atmosphere-websocket - the 
open, close and error events carry the query parameters of their own connection
   **Target branch:** `camel-4.22.x`
   **Fix version:** 4.22.3
   
   With the servlet init-param `events=true`, the open, close and error event 
exchanges now carry the query parameters of the request that opened their own 
websocket connection, kept by connection key until the connection closes, with 
names and values URL-decoded. Before, they carried the parameters of the last 
HTTP request the servlet handled.
   
   ### Adapted, not a straight cherry-pick
   
   Commits, both cherry-picked with `-x`:
   
   1. `CAMEL-26141` (#28913, merged on `main`): the tolerant query parameter 
parser (a parameter without a value, `=` inside a value, empty parameters) and 
the `useStreaming` description. #29845 builds on that parser and its 
`WebsocketQueryParameterTest`, which `camel-4.22.x` did not have yet.
   2. `CAMEL-26922` (#29845).
   
   Adaptations:
   
   - Brought #28913 along as a prerequisite commit. Its generated files 
(component JSON, catalog JSON, endpoint DSL) were checked against this branch's 
own build.
   - `camel-4.22.x` compiles with `--release 17`, where 
`java.net.http.HttpClient` is not `AutoCloseable`. 
`WebsocketQueryParameterTest` and `WebsocketEventQueryParameterTest` therefore 
use a plain local `HttpClient` instead of try-with-resources.
   - Left out the `camel-4x-upgrade-guide-4_24.adoc` change. The upgrade guides 
for all release lines live on `main`, so the 4.22.3 note goes into 
`camel-4x-upgrade-guide-4_22.adoc` on `main` in a separate doc-sync PR.
   
   ### Testing
   
   `mvn install` in `components/camel-atmosphere-websocket` on `camel-4.22.x` 
(Atmosphere 3.1.0, camel-test-junit6): 22 tests, 0 failures. The build left no 
uncommitted generated changes.
   
   _Claude Code on behalf of Claus Ibsen (davsclaus)_
   
   🤖 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