This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-spring-boot-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 3ee9f401ffa6b7a3b6333db696d83d85d52e0907
Author: Björn Beskow <bbes...@gmail.com>
AuthorDate: Tue Jun 3 10:50:00 2025 +0200

    Fixed special logic in getRawPath (#1445)
    
    Co-authored-by: Bjorn Beskow <b...@callistaenterprise.se>
---
 .../platform/http/springboot/SpringBootPlatformHttpBinding.java     | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java
 
b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java
index 36a7f604c90..33f47d85ab2 100644
--- 
a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java
+++ 
b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpBinding.java
@@ -297,12 +297,8 @@ public class SpringBootPlatformHttpBinding extends 
DefaultHttpBinding {
 
     @Override
     protected String getRawPath(HttpServletRequest request) {
-        String uri = request.getRequestURI();
         String contextPath = request.getContextPath() == null ? "" : 
request.getContextPath();
         String servletPath = request.getServletPath() == null ? "" : 
request.getServletPath();
-        if (contextPath.isEmpty()) {
-            return servletPath;
-        }
-        return uri.substring(contextPath.length() + servletPath.length());
+        return contextPath + servletPath;
     }
 }

Reply via email to