You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Kyle Patrick (JIRA)" <ji...@apache.org> on 2011/03/05 08:19:45 UTC

[jira] Created: (WICKET-3508) HttpsMapper trigers rendering of incorrect absolute callback url for Link

HttpsMapper trigers rendering of incorrect absolute callback url for Link
-------------------------------------------------------------------------

                 Key: WICKET-3508
                 URL: https://issues.apache.org/jira/browse/WICKET-3508
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.5-RC2
         Environment: Windows XP sp3, java 6
            Reporter: Kyle Patrick
            Priority: Minor


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>



-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (WICKET-3508) HttpsMapper triggers rendering of incorrect absolute callback url for Link

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg reassigned WICKET-3508:
-------------------------------------

    Assignee: Igor Vaynberg

> HttpsMapper triggers rendering of incorrect absolute callback url for Link
> --------------------------------------------------------------------------
>
>                 Key: WICKET-3508
>                 URL: https://issues.apache.org/jira/browse/WICKET-3508
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: Windows XP sp3, java 6
>            Reporter: Kyle Patrick
>            Assignee: Igor Vaynberg
>            Priority: Minor
>              Labels: wicket
>         Attachments: quickstart.zip
>
>
> 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>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Resolved: (WICKET-3508) HttpsMapper triggers rendering of incorrect absolute callback url for Link

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-3508.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC3

> HttpsMapper triggers rendering of incorrect absolute callback url for Link
> --------------------------------------------------------------------------
>
>                 Key: WICKET-3508
>                 URL: https://issues.apache.org/jira/browse/WICKET-3508
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: Windows XP sp3, java 6
>            Reporter: Kyle Patrick
>            Assignee: Igor Vaynberg
>            Priority: Minor
>              Labels: wicket
>             Fix For: 1.5-RC3
>
>         Attachments: quickstart.zip
>
>
> 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>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (WICKET-3508) HttpsMapper triggers rendering of incorrect absolute callback url for Link

Posted by "Kyle Patrick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kyle Patrick updated WICKET-3508:
---------------------------------

    Summary: HttpsMapper triggers rendering of incorrect absolute callback url for Link  (was: HttpsMapper trigers rendering of incorrect absolute callback url for Link)

minor typo in summary

> HttpsMapper triggers rendering of incorrect absolute callback url for Link
> --------------------------------------------------------------------------
>
>                 Key: WICKET-3508
>                 URL: https://issues.apache.org/jira/browse/WICKET-3508
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: Windows XP sp3, java 6
>            Reporter: Kyle Patrick
>            Priority: Minor
>              Labels: wicket
>         Attachments: quickstart.zip
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WICKET-3508) HttpsMapper trigers rendering of incorrect absolute callback url for Link

Posted by "Kyle Patrick (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kyle Patrick updated WICKET-3508:
---------------------------------

    Attachment: quickstart.zip

Attached quickstart. Note that https is not configured and doesn't need to be to demonstrate the bug.

> HttpsMapper trigers rendering of incorrect absolute callback url for Link
> -------------------------------------------------------------------------
>
>                 Key: WICKET-3508
>                 URL: https://issues.apache.org/jira/browse/WICKET-3508
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC2
>         Environment: Windows XP sp3, java 6
>            Reporter: Kyle Patrick
>            Priority: Minor
>              Labels: wicket
>         Attachments: quickstart.zip
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira