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

          Andreas Köhler created issue -
          Andreas Köhler made changes -
          Field Original Value New Value
          Attachment wicket-4260.tar.bz2 [ 12505103 ]
          Pedro Santos made changes -
          Attachment WICKET-4260.path [ 12505395 ]
          Martin Grigorov made changes -
          Link This issue is duplicated by WICKET-4442 [ WICKET-4442 ]
          Sven Meier made changes -
          Attachment WICKET-4260.diff [ 12517535 ]
          Martin Grigorov made changes -
          Assignee Sven Meier [ svenmeier ]
          Sven Meier made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Sven Meier made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 1.5.6 [ 12319053 ]
          Fix Version/s 6.0.0 [ 12315431 ]
          Resolution Fixed [ 1 ]
          Chris Colman made changes -
          Attachment ieDotSlashBug.zip [ 12521305 ]
          Sven Meier made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Sven Meier made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 6.0.0-RC1 [ 12320343 ]
          Fix Version/s 6.0.0-beta1 [ 12315431 ]
          Resolution Fixed [ 1 ]
          Sven Meier made changes -
          Link This issue breaks WICKET-4920 [ WICKET-4920 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development