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

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


The following commit(s) were added to refs/heads/main by this push:
     new 01fc94ecc67 Fixed special logic in getRawPath (#1445)
01fc94ecc67 is described below

commit 01fc94ecc6750fa0d4a0c23bd3c20ea4730bb88e
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