[ 
https://issues.apache.org/jira/browse/CAMEL-8734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14740469#comment-14740469
 ] 

Frédérik ROULEAU commented on CAMEL-8734:
-----------------------------------------

The problem is that the HTTP_PATH header is modified, and thus the case 
insensitiveness is not only for context match.
See in netty4, DefaultNettyHttpBinding.java  the path is converted to lower 
case and put back to header,  overwritting the original HTTP_PATH. :

if (configuration.getPath() != null) {
  // need to match by lower case as we want to ignore case on context-path
  path = path.toLowerCase(Locale.US);
  ....
}
headers.put(Exchange.HTTP_PATH, path);

> camel-netty-http - Should ignore case of context-path
> -----------------------------------------------------
>
>                 Key: CAMEL-8734
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8734
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-netty-http, camel-netty4-http
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.15.3, 2.16.0
>
>
> We should ignore case when matching context-path. We have some code that 
> matches using .startsWith. But that does not match with different case, such 
> as Customer vs customer.
> People dont really want to expose HTTP services where the context path uses 
> different case. So if people type /customer or /Customer or /CUSTOMER then it 
> should match the same.
> See nabble
> http://camel.465427.n5.nabble.com/How-to-create-case-insensitive-URI-route-with-netty4-http-tp5766517.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to