Author: jfrederic.clere(a)jboss.com
Date: 2009-06-24 02:53:15 -0400 (Wed, 24 Jun 2009)
New Revision: 1127
Modified:
sandbox/webapps/metainf/context.xml
sandbox/webapps/src/TestServlet.java
Log:
Test for null headers and "emptySessionPath" replacement.
Modified: sandbox/webapps/metainf/context.xml
===================================================================
--- sandbox/webapps/metainf/context.xml 2009-06-22 14:55:15 UTC (rev 1126)
+++ sandbox/webapps/metainf/context.xml 2009-06-24 06:53:15 UTC (rev 1127)
@@ -1,2 +1,3 @@
<Context privileged="true">
+ <SessionCookie Path="/"/>
</Context>
Modified: sandbox/webapps/src/TestServlet.java
===================================================================
--- sandbox/webapps/src/TestServlet.java 2009-06-22 14:55:15 UTC (rev 1126)
+++ sandbox/webapps/src/TestServlet.java 2009-06-24 06:53:15 UTC (rev 1127)
@@ -94,6 +94,10 @@
responseStream.close();
return;
}
+ if (testValue != null &&
testValue.compareToIgnoreCase("NULL_HEADER")==0) {
+ response.addHeader("", "empty");
+ return;
+ }
String createValue = request.getParameter("create");
int icreate = 0;
Show replies by date