Andrea Cosentino created CAMEL-24655:
----------------------------------------
Summary: camel-coap: add regression test for case-insensitive
Camel header filtering in the consumer
Key: CAMEL-24655
URL: https://issues.apache.org/jira/browse/CAMEL-24655
Project: Camel
Issue Type: Test
Components: camel-coap
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
The CoAP consumer maps the URI query parameters of an incoming request into
Exchange headers, applying the endpoint HeaderFilterStrategy first
(CamelCoapResource). The default strategy is DefaultHeaderFilterStrategy, which
filters names starting with Camel/camel case-insensitively, so Camel internal
headers cannot be set by a remote peer.
This behaviour is currently not covered by any test in camel-coap, so a future
refactoring of the consumer could silently drop the filtering.
Add a regression test that sends CoAP requests carrying a Camel internal header
name as a URI query parameter in several casings and asserts that the header is
not mapped onto the Exchange, while ordinary query parameters still are.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)