Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10779

UriComponentsBuilder should be case-insensitive when parsing URL scheme names

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2.4, 4.0 M3
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      According to RFC 1738 "Uniform Resource Locators (URL)", the scheme names of an URL allows the following characters: lower case letters a to z, digits, the characters plus, period, and hyphen. It also states:

      "For resiliency, programs interpreting URLs should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http")." (section 2.1. The main parts of URLs).

      Unfortunately UriComponentsBuilder does not accept the upper case variants HTTP and HTTPS, it throws an IllegalArgumentException instead.

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              smaugg André Wolf
              Last updater:
              Spring Issuemaster
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                27 weeks ago