[
http://jira.jboss.com/jira/browse/JBPORTAL-1075?page=comments#action_1234... ]
Chris Laprun commented on JBPORTAL-1075:
----------------------------------------
Our implementation of session handling on the producer has quite changed so we need to
adapt what we need to test somewhat.
* releaseSessions should NOT be called by Consumers with our producer since we will not
send any Portlet session id (our implementation relies on the Consumer sending back the
cookies our Producer sends to manage the Portlet sessions on the producer side). In
effect, the method should always fail if called. See
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992898 for a discussion
of the problem. What this means, is that we don't need to test releaseSessions apart
from making sure that it fails.
* For handling of released session ids, we cannot test it since a Consumer should never
have had a session id to begin with. We should however make sure that :
1. we don't return any session id where we potentially could
2. we correctly detect that a session id was provided when there shouldn't have been
none and throw the appropriate exception.
This involves testing methods that can return or pass a SessionContext object.
Test handling of sessions more completely.
------------------------------------------
Key: JBPORTAL-1075
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1075
Project: JBoss Portal
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Portal WSRP, Portal Test
Affects Versions: 2.4.1 Final, 2.6.Alpha1
Reporter: Chris Laprun
Assigned To: Matt Wringe
Fix For: 2.6.Alpha1
Session handling is under-tested, in particular with respect to border conditions. We
need to test:
* releaseSessions method is not currently tested
* handling of session expiration in the producer
* handling of a released session (i.e. what happens if the consumer sends a request with
a released session id)
* check that sessions are correctly handled by cookies, in particular by checking that
the appropriate information is put in the session
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira