Author: remy.maucherat(a)jboss.com
Date: 2011-06-28 16:44:24 -0400 (Tue, 28 Jun 2011)
New Revision: 1749
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/connector/CoyoteAdapter.java
Log:
- Port fix for JBWEB-188.
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/connector/CoyoteAdapter.java
===================================================================
---
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/connector/CoyoteAdapter.java 2011-06-28
14:39:45 UTC (rev 1748)
+++
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/connector/CoyoteAdapter.java 2011-06-28
20:44:24 UTC (rev 1749)
@@ -399,6 +399,17 @@
request.setContext((Context) request.getMappingData().context);
request.setWrapper((Wrapper) request.getMappingData().wrapper);
+ if (request.getMappingData().host == null) {
+ res.setStatus(400);
+ res.setMessage("Host not mapped");
+ return false;
+ }
+ if (request.getMappingData().context == null) {
+ res.setStatus(404);
+ res.setMessage("Context not mapped");
+ return false;
+ }
+
// Filter trace method
if (!connector.getAllowTrace()
&& req.method().equalsIgnoreCase("TRACE")) {
Show replies by date