Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1887

Host selector should be case insensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.8, 2.1.11, 2.2
    • 2.1.12, 2.3.0
    • - Components: Sitemap
    • None
    • Low
    • Patch available
    • Components: Sitemap - 1.0.0
    • Components: Sitemap

    Description

      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.

      Attachments

        1. HostSelectorPatch.diff
          5 kB
          Andrew Stevens

        Activity

          People

            joerg.heinicke@gmx.de Jörg Heinicke
            madpenguin Andrew Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: