cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stevens (JIRA)" <>
Subject [jira] Updated: (COCOON-1887) Host selector should be case insensitive
Date Fri, 28 Jul 2006 17:39:15 GMT
     [ ]

Andrew Stevens updated COCOON-1887:

    Attachment: HostSelectorPatch.diff

Patch against 2.1.x branch that adds a unit test for hostname & value being of different
cases, and fixes the host selector so that the test passes.  The existing behaviour is preserved
for any other NamedPatternsSelector subclasses, since they may need to be case-sensitive.

> Host selector should be case insensitive
> ----------------------------------------
>                 Key: COCOON-1887
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Components: Sitemap
>    Affects Versions: 2.1.8
>            Reporter: Andrew Stevens
>            Priority: Minor
>         Attachments: HostSelectorPatch.diff
> According to the relevant RFC (RFC3986 section 3.2.2) the host part of a HTTP URL should
be case insensitive; the remaining path is case sensitive, but scheme and host should not
be.  However, the host selector is currently not case insensitive (since NamedPatternsSelector.checkPatterns(String,
String) uses indexOf) and therefore if the requested URL uses a different case for the host
part the pipeline may choose the wrong case in the map:select.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message