[
https://issues.apache.org/jira/browse/WICKET-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johan Compagner closed WICKET-1387.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.3.2
Assignee: Alastair Maw
we just had setPath("/")
because previously we did getWebRequest().getContext())
But that method is gone now. But the problem is can we really do this:
cookie.setPath(getWebRequest().getHttpServletRequest().getContextPath());
if we are behind a firewall?
I committed that for now, but i guess we should look for better ways to do it
I guess the Application.getXXXSetting().getContextPath() does have to return
that people can configure correctly
for this kind of stuff and also for creating full urls (for generating urls for
emails and so on)
> Cookie Path of persistent FormElements wrong
> --------------------------------------------
>
> Key: WICKET-1387
> URL: https://issues.apache.org/jira/browse/WICKET-1387
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.1
> Environment: eclipse, maven, jetty-plugin / resin
> Reporter: Daniel Peters
> Assignee: Alastair Maw
> Fix For: 1.3.2
>
>
> My web-app runs on the context-path "/mdb-war-wicket"
> the JSESSIONID cookie is set correctly by jetty:
> Name JSESSIONID
> Value rz0z72x33e4p
> Host localhost
> Path /mdb-war-wicket
> Secure No
> Expires At End Of Session
> But the persistent cookies of my form are set to Path "/":
> Name signInPanel:signInForm:username
> Value mdb
> Host localhost
> Path /
> Secure No
> Expires Sun, 30 Mar 2008 16:31:00 GMT
> This can be a real problem when more than one application runs in the
> app-server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.