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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.4, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: