Claus Ibsen created CAMEL-27904:
-----------------------------------

             Summary: camel-atmosphere-websocket: httpMethodRestrict with more 
than one method rejects every request
                 Key: CAMEL-27904
                 URL: https://issues.apache.org/jira/browse/CAMEL-27904
             Project: Camel
          Issue Type: Bug
          Components: camel-atmosphere-websocket
            Reporter: Claus Ibsen
             Fix For: 4.25.0


Found while improving the option descriptions of camel-atmosphere-websocket for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31165).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. httpMethodRestrict with more than one method rejects every request
{{CamelWebSocketServlet.handleDoService}} compares httpMethodRestrict with 
equals(), so httpMethodRestrict=GET,POST answers 405 to every request.
Proposed change: split on comma, as CamelContinuationServlet does.

h4. 2. Inherited options without effect
The consumer hands requests to Atmosphere and never uses the HttpBinding or 
CamelServlet.doExecute, so disableStreamCache, transferException, httpBinding, 
async, chunked, logException, muteException, responseBufferSize, 
eagerCheckContentAvailable, mapHttpMessage*, optionsEnabled and bridgeEndpoint 
have no effect; only matchOnUriPrefix, httpMethodRestrict, traceEnabled and 
headerFilterStrategy do.
Proposed change: add them to excludeProperties.


_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to