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

UrlRenderer renders invalid relative URLs if first segment contains colon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.3
    • 1.5.6, 6.0.0-beta2
    • wicket
    • None

    Description

      Seen on Wicket 1.5.3.

      If a relative url of a link starts with a path segment containing a colon then the whole uri will be regarded as absolute uri, so typically browsers will complain that there is no handle for the protocol foo in foo:bar/dee/per.

      See also the attached quickstart. The start page contains three links, one relative with colon, one absolute and one to a mounted page without colon for comparison.
      The application also has a static switch to add an extended urlrenderer, prepending "./" if needed. This fix is merely a quick shot and there might be better alternatives.

      Attachments

        1. ieDotSlashBug.zip
          25 kB
          Chris Colman
        2. WICKET-4260.diff
          4 kB
          Sven Meier
        3. WICKET-4260.path
          1 kB
          Pedro Santos
        4. wicket-4260.tar.bz2
          21 kB
          Andreas Köhler

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              andi5 Andreas Köhler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: