[ 
https://issues.apache.org/jira/browse/WICKET-4989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581407#comment-13581407
 ] 

Martin Grigorov commented on WICKET-4989:
-----------------------------------------

Now WicketTester keeps the cookies in the request. They are transferred to the 
next request unless there is a cookie in the lastResponse that has max-age==0 
for a cookie with the same name, path and domain.
MockHttpServlet(Request|Response)#getCookies() returns copies of the cookies so 
the request and response do not share the same instances.  
                
> WicketTester should send copies of its cookies 
> -----------------------------------------------
>
>                 Key: WICKET-4989
>                 URL: https://issues.apache.org/jira/browse/WICKET-4989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.9, 6.4.0
>         Environment: any
>            Reporter: Michael Mosmann
>            Assignee: Martin Grigorov
>             Fix For: 1.5.10
>
>         Attachments: quickstart-basewickettester-bug.zip
>
>
> There are some bugs related to cookie handling in BaseWicketTester.
> Problem 1) a cookie set in the request should not be in the response unless 
> manually set by the server code
> Problem 2) wicket tester sends the original cookie instance to the server. If 
> the server code manipulates the cookie anyhow (e.g. change its value) but do 
> not send it back explicitly in the response then the original cookie in 
> WicketTester (the request cookie) is updated while it shouldn't be.
> A possible solutions for these problems can be found at:
> https://github.com/apache/wicket/pull/28

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to