[jboss-jira] [JBoss JIRA] (AS7-4051) TS: Clustering tests are relying on the fact that node0 and node1 are the same domain for cookies
Richard Achmatowicz (JIRA)
jira-events at lists.jboss.org
Tue Mar 6 10:35:38 EST 2012
[ https://issues.jboss.org/browse/AS7-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674013#comment-12674013 ]
Richard Achmatowicz commented on AS7-4051:
------------------------------------------
OK, so if I understand correctly, this is what is happening in this test where a client interacts with two servers serverA and serverB and one of the servers fails:
- client sends a request to server A
- server A sends a reply with a cookie containing the sesssion id, with a specified cookie domain (serverA) and cookie path (/path)
- client stores the cookie.
NOTE: From now on, the client checks if it should send a cookie with the request; it only does so if the domain in the cookie and the domain of the server match, as well as the path of the request and the path of the cookie
- client interacts with serverA again; this time, it sends he cookie containing the session id, as the domain and path match
- the server sends back the correct response to the client as the session id was passed with the request and the session state incremented correctly
- now serverA fails
- client sends the next request with serverB instead of sever A
- because the cookie domain no longer matches (i.e. domain was serverA, but it is now serverB), the client does not send the cookie containing the session id to the serverB with the request
- serverB sends back the wrong result to client because no sessionid was passed and it things client is a completely new client with no session history
So, in a failover scenario, unless we reset the cookie domain on the client, session-based requests in failover scenarios will always fail.
> TS: Clustering tests are relying on the fact that node0 and node1 are the same domain for cookies
> -------------------------------------------------------------------------------------------------
>
> Key: AS7-4051
> URL: https://issues.jboss.org/browse/AS7-4051
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Clustering, Test Suite
> Affects Versions: 7.1.1.Final
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
> Fix For: 7.2.0.Alpha1
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> Clustering tests are relying on the fact that node0 and node1 are the same domain for cookies.
> So when they are different they don't provide the correct cookies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list