You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Murat Yücel (JIRA)" <ji...@apache.org> on 2009/01/08 10:30:59 UTC

[jira] Created: (WICKET-2011) FormComponent cookie persistent issue

FormComponent cookie persistent issue
-------------------------------------

                 Key: WICKET-2011
                 URL: https://issues.apache.org/jira/browse/WICKET-2011
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC1, 1.3.5
         Environment: Doesnt matter which os or on which platform you are running
            Reporter: Murat Yücel


The FormComponent doesnt persistent the cookie correct when there is no context path and the cookie is created on a mounted page. The cookie is created by cannot be retrieved again from the formcomponent. Either the retrieval logic is wrong or the cookie is created wrongly.

See this thread for more information:
http://www.nabble.com/FormComponent-cookie-persistent-issue-td21197389.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-2011) FormComponent cookie persistent issue

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

Murat Yücel updated WICKET-2011:
--------------------------------

    Attachment: myproject.rar

Use the Start.java to run the example. Because the example should be performed without a context path.

> FormComponent cookie persistent issue
> -------------------------------------
>
>                 Key: WICKET-2011
>                 URL: https://issues.apache.org/jira/browse/WICKET-2011
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.5, 1.4-RC1
>         Environment: Doesnt matter which os or on which platform you are running
>            Reporter: Murat Yücel
>         Attachments: myproject.rar
>
>
> The FormComponent doesnt persistent the cookie correct when there is no context path and the cookie is created on a mounted page. The cookie is created by cannot be retrieved again from the formcomponent. Either the retrieval logic is wrong or the cookie is created wrongly.
> See this thread for more information:
> http://www.nabble.com/FormComponent-cookie-persistent-issue-td21197389.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-2011) FormComponent cookie persistent issue

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

Juergen Donnerstag resolved WICKET-2011.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC2
         Assignee: Juergen Donnerstag

fixed. If context path == "", than use "/"

> FormComponent cookie persistent issue
> -------------------------------------
>
>                 Key: WICKET-2011
>                 URL: https://issues.apache.org/jira/browse/WICKET-2011
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.5, 1.4-RC1
>         Environment: Doesnt matter which os or on which platform you are running
>            Reporter: Murat Yücel
>            Assignee: Juergen Donnerstag
>             Fix For: 1.4-RC2
>
>         Attachments: myproject.rar
>
>
> The FormComponent doesnt persistent the cookie correct when there is no context path and the cookie is created on a mounted page. The cookie is created by cannot be retrieved again from the formcomponent. Either the retrieval logic is wrong or the cookie is created wrongly.
> See this thread for more information:
> http://www.nabble.com/FormComponent-cookie-persistent-issue-td21197389.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2011) FormComponent cookie persistent issue

Posted by "Murat Yücel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664326#action_12664326 ] 

Murat Yücel commented on WICKET-2011:
-------------------------------------

I have tried to deploy the application on a tomcat server in case this was jetty related. But the same behavior occurs on the tomcat server when deploying to root context.

> FormComponent cookie persistent issue
> -------------------------------------
>
>                 Key: WICKET-2011
>                 URL: https://issues.apache.org/jira/browse/WICKET-2011
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.5, 1.4-RC1
>         Environment: Doesnt matter which os or on which platform you are running
>            Reporter: Murat Yücel
>         Attachments: myproject.rar
>
>
> The FormComponent doesnt persistent the cookie correct when there is no context path and the cookie is created on a mounted page. The cookie is created by cannot be retrieved again from the formcomponent. Either the retrieval logic is wrong or the cookie is created wrongly.
> See this thread for more information:
> http://www.nabble.com/FormComponent-cookie-persistent-issue-td21197389.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2011) FormComponent cookie persistent issue

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663482#action_12663482 ] 

Juergen Donnerstag commented on WICKET-2011:
--------------------------------------------

without mountBookmarkablePage: Cookie Path = /
with mountBookmarkablePage: Cookie Path = /homepage/wicket:interface/:0:loginPanel:loginForm::IFormSubmitListener::/

Enable logging with log4j.logger.org.apache.wicket.markup.html.form.persistence=DEBUG to see that wicket always provided an empty path

The 'path' is set via: cookie.setPath(getWebRequest().getHttpServletRequest().getContextPath()); 
With and without mountBookmarkablePage the path was set to "", the context path. This empty path leads than to the browser applying the requestUri instead.

When loading the cookie, the requestUri used however is /homepage, which of course leads to the browser not returning the cookie (path does not match).

This far I got for now. More to come next time.



> FormComponent cookie persistent issue
> -------------------------------------
>
>                 Key: WICKET-2011
>                 URL: https://issues.apache.org/jira/browse/WICKET-2011
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.5, 1.4-RC1
>         Environment: Doesnt matter which os or on which platform you are running
>            Reporter: Murat Yücel
>         Attachments: myproject.rar
>
>
> The FormComponent doesnt persistent the cookie correct when there is no context path and the cookie is created on a mounted page. The cookie is created by cannot be retrieved again from the formcomponent. Either the retrieval logic is wrong or the cookie is created wrongly.
> See this thread for more information:
> http://www.nabble.com/FormComponent-cookie-persistent-issue-td21197389.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.