You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2009/01/13 22:31:04 UTC

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

    [ 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.