Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4255

bug in org.apache.wicket.validation.validator.UrlValidator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.3
    • 1.5.4, 6.0.0-beta1
    • wicket
    • None

    Description

      Looks like there is a bug in UrlValidator. It validates URLs like "http://testhost.local/pages/index.php" as invalid.
      But URL is valid! Try to execute "new java.net.URL("http://testhost.local/pages/index.php");" for example. It does not throws "MalformedURLException" because URL is valid.

      In method: UrlValidator.isValidAuthority() there is code: "if (topLevel.length() < 2 || topLevel.length() > 4)

      {return false;}

      " Looks like this "> 4" is a wrong constraint.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            jamerlan Alexander Lipatov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: