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

UrlValidator failes to validate urls that containt multiple dots in path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.9
    • 1.4.15, 1.5-RC1
    • wicket
    • None
    • Linux, Tomcat

    Description

      refer to UrlValidator.java:466 (isValidPath).
      if we have an url, that contains more than two consequent dots, for example "http://www.somedomain.com/this_one_is_tricky...but...still.....valid", validator will fail.
      btw, the other side effect is that countTokens actually counts '...' a two 2dots.
      One possible workaround is not just count '..' tokens, but count them along with slash, like '../'.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            curly Ivan Zinchenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: