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

isValid return false for a valid URL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0 Release
    • Fix Version/s: 1.3.1 Release
    • Component/s: None
    • Labels:
      None
    • Environment:

      JBOSS, Linux

      Description

      IsValid returns false for the following valid Url:

      http://tech.yahoo.com/rc/desktops/102;_ylt=Ao8yevQHlZ4On0O3ZJGXLEQFLZA5

      Stepping thru the code isValidPath return false for the above URL.

      Test Code:

      String[] schemes =

      {"http","https"}

      .
      UrlValidator urlValidator = new UrlValidator(schemes) ;
      urlValidator.isValid("http://tech.yahoo.com/rc/desktops/102;_ylt=Ao8yevQHlZ4On0O3ZJGXLEQFLZA5") ;

        Attachments

        1. VALIDATOR-204.patch
          2 kB
          Henri Yandell

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shamsian Ben
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: