You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Hans Orbaan (JIRA)" <ji...@apache.org> on 2015/09/08 14:14:45 UTC

[jira] [Commented] (CAMEL-8734) camel-netty-http - Should ignore case of context-path

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

Hans Orbaan commented on CAMEL-8734:
------------------------------------

Hi,

Please consider that URLs should be case sensitive according to W3.
[quote]URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.[/quote]
http://www.w3.org/TR/WD-html40-970708/htmlweb.html

The header CamelHttpPath should provide me what the user actually entered.

> 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)