You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2018/09/10 10:04:58 UTC

svn commit: r1840448 - /tomcat/jk/trunk/native/apache-2.0/mod_jk.c

Author: markt
Date: Mon Sep 10 10:04:57 2018
New Revision: 1840448

URL: http://svn.apache.org/viewvc?rev=1840448&view=rev
Log:
Change return code for bad request paths to the more appropriate HTTP_BAD_REQUEST.

Modified:
    tomcat/jk/trunk/native/apache-2.0/mod_jk.c

Modified: tomcat/jk/trunk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/apache-2.0/mod_jk.c?rev=1840448&r1=1840447&r2=1840448&view=diff
==============================================================================
--- tomcat/jk/trunk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/jk/trunk/native/apache-2.0/mod_jk.c Mon Sep 10 10:04:57 2018
@@ -2782,7 +2782,7 @@ static int jk_handler(request_rec * r)
                 clean_uri = apr_pstrdup(r->pool, r->uri);
                 rc = jk_servlet_normalize(clean_uri, xconf->log);
                 if (rc != 0) {
-                	return HTTP_NOT_FOUND;
+                	return HTTP_BAD_REQUEST;
                 }
 
                 worker_name = map_uri_to_worker_ext(xconf->uw_map, clean_uri,
@@ -3798,7 +3798,7 @@ static int jk_translate(request_rec * r)
             clean_uri = apr_pstrdup(r->pool, r->uri);
             rc = jk_servlet_normalize(clean_uri, conf->log);
             if (rc != 0) {
-            	return HTTP_NOT_FOUND;
+            	return HTTP_BAD_REQUEST;
             }
 
             /* Special case to make sure that apache can serve a directory
@@ -4006,7 +4006,7 @@ static int jk_map_to_storage(request_rec
             clean_uri = apr_pstrdup(r->pool, r->uri);
             rc = jk_servlet_normalize(clean_uri, conf->log);
             if (rc != 0) {
-            	return HTTP_NOT_FOUND;
+            	return HTTP_BAD_REQUEST;
             }
 
             if (!conf->uw_map) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org