[
https://issues.apache.org/jira/browse/CAMEL-23191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-23191 started by Federico Mariani.
------------------------------------------------
> Path parameters incorrectly extracted when server.servlet.context-path is
> configured
> ------------------------------------------------------------------------------------
>
> Key: CAMEL-23191
> URL: https://issues.apache.org/jira/browse/CAMEL-23191
> Project: Camel
> Issue Type: Bug
> Components: camel-platform-http, camel-spring-boot
> Affects Versions: 4.18.0
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
> Fix For: 4.19.0, 4.181
>
>
> When using Camel REST DSL with Platform-HTTP in Spring Boot and configuring a
> servlet context path (server.servlet.context-path), path parameters are
> extracted incorrectly, they are shifted by the number of segments in the
> context path.
> Steps to reproduce:
> 1. Set server.servlet.context-path=/test and camel.rest.context-path=/api
> 2. Define a REST route: rest("/message").get("/\{param\}")
> 3. Call GET /test/api/message/1234
> Expected: header param = "1234"
> Actual: header param = "message"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)