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

URLValidator fails validating domain names with a trailing period, which are valid.

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
    • Routines
    • None

    Description

      The Apache Commons class org.apache.commons.validator.routines.UrlValidator method isValid() fails on URLS where the hostname has a trailing period, like "http://www.cnn.com./WORLD/?hpt=sitenav"

      A trailing period on the hostname part of the URL is valid according to http://www.dns-sd.org/TrailingDotsInDomainNames.html and ANY URL I try does work successfully even when I put a trailing dot on the end of the domain name.

      Can you add a fix in for this, so I can still use the URLValidator?

      Thanks,
      -Alex

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            amblume Alex Blume
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment