Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-309

UrlValidator does not validate uppercase URL schemes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0 Release
    • 1.4.1 Release
    • None
    • None

    Description

      I am using org.apache.commons.validator.routines.UrlValidator class to validate URLs. The problem is that when the URL is all uppercase, the isValid(...) method returns false.
      For example:
      https://sample.ondemand.com is valid
      HTTPS://SAMPLE.ONDEMAND.COM is not valid

      RFC 1738 states that both URLs are valid.

      Attachments

        1. Validator-309.patch
          0.7 kB
          Gurps Bassi
        2. Validator-309-test.patch
          1.0 kB
          Gurps Bassi

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rrashidov Rashid Rashidov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment