Wicket
  1. Wicket
  2. WICKET-4260

UrlRenderer renders invalid relative URLs if first segment contains colon

    Details

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

      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

            • Assignee:
              Sven Meier
              Reporter:
              Andreas Köhler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development