[jboss-cvs] JBossAS SVN: r60784 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 21 18:26:42 EST 2007
Author: bstansberry at jboss.com
Date: 2007-02-21 18:26:42 -0500 (Wed, 21 Feb 2007)
New Revision: 60784
Modified:
branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java
Log:
[JBAS-4085] Assert a 400 for a URL with %xx encoded '/'
Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java 2007-02-21 22:19:32 UTC (rev 60783)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java 2007-02-21 23:26:42 UTC (rev 60784)
@@ -442,7 +442,9 @@
URL url = new URL(baseURL+"jbosstest//restricted3//SecureServlet");
HttpUtils.accessURL(url,REALM, HttpURLConnection.HTTP_FORBIDDEN);
url = new URL(baseURL+"jbosstest/%2frestricted3//SecureServlet");
- HttpUtils.accessURL(url,REALM, HttpURLConnection.HTTP_FORBIDDEN);
+ // BES 2007/02/21 -- %xx encoded '/' is verboten so we now expect 400
+ //HttpUtils.accessURL(url,REALM, HttpURLConnection.HTTP_FORBIDDEN);
+ HttpUtils.accessURL(url,REALM, HttpURLConnection.HTTP_BAD_REQUEST);
}
/**
More information about the jboss-cvs-commits
mailing list