costin 01/08/30 13:42:04
Modified: src/tests/webpages/WEB-INF test-tomcat.xml
Log:
Apache has different return codes for bad requests ( I would argue 501 as tomcat
returns is better than 500, but it doesn't matter )
Revision Changes Path
1.44 +6 -3 jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml
Index: test-tomcat.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- test-tomcat.xml 2001/08/25 16:18:20 1.43
+++ test-tomcat.xml 2001/08/30 20:42:04 1.44
@@ -16,7 +16,7 @@
early tests.
-->
- <property name="revision" value="$Revision: 1.43 $" />
+ <property name="revision" value="$Revision: 1.44 $" />
<property name="host" value="127.0.0.1" />
<property name="port" value="8080" />
<property name="colonPort" value=":${port}" />
@@ -922,7 +922,7 @@
<gtest request="GHOST /test/servlet/request.EchoServlet HTTP/1.0"
content="name=lightness of being"
- returnCode="${http.protocol} 501"
+ returnCode="${http.protocol} 50"
/>
<!-- Hangs on apache, apache expects a 1.0 requets
@@ -996,7 +996,7 @@
<gtest request="post /test/servlet/request.EchoServlet HTTP/1.0"
content="name=lightness of being"
- returnCode="${http.protocol} 501"
+ returnCode="${http.protocol} 50"
/>
<!-- tolerate bad request for now
@@ -1201,6 +1201,8 @@
method="GET" />
<httpStatusMatch match="404"/>
</httpClient>
+<!-- Removed: I see no valid reason for those requests to pass, Apache doesn't
+ like this, and it's certainly too strange and on the limit
<httpClient >
<httpRequest path="/test/jsp/ShowPathInfo.jsp;jsessionid=%25%2E%2F%5C"
method="GET" />
@@ -1213,6 +1215,7 @@
<httpStatusMatch match="200"/>
<responseMatch match="getRequestURI: /test/js%70/ShowPathInfo.jsp"/>
</httpClient>
+-->
<httpClient >
<httpRequest path="/test/jsp/ShowPathInfo.jsp;jsessionid=123"
method="GET" />