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

[validator] UrlValidator fails http://www.google.com

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0 Release
    • None
    • None
    • Operating System: All
      Platform: All

    • 30686

    Description

      Per discussion on commons-dev list the following isValid method should not
      return false for http://www.google.com;

      public void testSanity() {
      UrlValidator v = new UrlValidator();
      assertTrue(v.isValid("http://www.google.com"));
      }

      Bug/enhancement I think is to make port and path optional tokens of the url.
      Full thread available here:
      http://www.mail-archive.com/commons-dev%40jakarta.apache.org/msg46584.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            tim.reilly@consultant.com Tim Reilly
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: