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

HttpsMapper triggers rendering of incorrect absolute callback url for Link

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5-RC2
    • 1.5-RC3
    • wicket
    • Windows XP sp3, java 6

    Description

      This problem only occurs when HttpsMapper is installed as the root request mapper. Additionally, it only seems to occur when the web context is not root.

      I mount a simple page so that it is available as http://localhost:8080/myproject/pagetest. That page has one Link (the onclick doesn't do anything). If I access that exact url and show source I see the link callback is rendered incorrectly. It should have the web context mentioned. The fact that Wicket generates an absolute url makes me think the HttpsMapper.mapHandler is touching it in such a way to trigger an absolute url, when the delegate was returning a url expecting it to be relative.

      <!DOCTYPE html>
      <html>
      <body>
      <a wicket:id="test" href="http://localhost:8080/wicket/page?1-1.ILinkListener-test">Click Here</a>
      </body>
      </html>

      Attachments

        1. quickstart.zip
          32 kB
          Kyle Patrick

        Activity

          People

            ivaynberg Igor Vaynberg
            kpatrick Kyle Patrick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: