[JBoss JIRA] Assigned: (GTNWCI-3) Unit test to ensure that sessions is maintained accross request dispatching
by Matt Wringe (JIRA)
[ https://jira.jboss.org/jira/browse/GTNWCI-3?page=com.atlassian.jira.plugi... ]
Matt Wringe reassigned GTNWCI-3:
--------------------------------
Assignee: Matt Wringe
> Unit test to ensure that sessions is maintained accross request dispatching
> ---------------------------------------------------------------------------
>
> Key: GTNWCI-3
> URL: https://jira.jboss.org/jira/browse/GTNWCI-3
> Project: GateIn Web Container Integration
> Issue Type: Task
> Reporter: Julien Viet
> Assignee: Matt Wringe
>
> unit test would do:
> Request 1:
> - request dispatch to a context named /other and setup an object in the session
> - make a request for step 2 of the unit test
> Request 2:
> - create URL for step 4 of the test that points to the test servlet
> - request dispatch to the /other context and assert that the object is present in the session
> - during request dispatch create URL for step 3 of the test that points to servlet directly
> - make request to the servlet directly with the URL created previously
> Request 3:
> - this request go on the servlet mapped in /context directly
> - check that session is maintained and setup a boolean that will be used for assertion in step 4
> - make a request for step 4 of the test with the URL that was created and saved (in a static field) during step 2
> Request 4:
> - assert boolean that was set during the step 3 of the test
> - done
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (GTNWCI-14) Improve web app event delivery
by Julien Viet (JIRA)
Improve web app event delivery
------------------------------
Key: GTNWCI-14
URL: https://jira.jboss.org/jira/browse/GTNWCI-14
Project: GateIn Web Container Integration
Issue Type: Task
Reporter: Julien Viet
Fix For: 2.0.0-CR03
When an java.lang.Error arrises during the delivery of an event and it is swallowed (at least in tomcat native integration).
In DefaultServletContainer the safeFireEvent method should be rewritten in the following manner:
private void safeFireEvent(WebAppListener listener, WebAppEvent event)
{
try
{
listener.onEvent(event);
}
catch (Throwable t)
{
t.printStackTrace(); // yeah ugly change that
// If it's an error it's safer to propagate it to the parent (it could be an OutOfMemoryException for instance)
if (t instanceof Error)
{
throw (Error)t;
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months