You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by sc...@apache.org on 2026/10/21 11:30:42 UTC

(tomcat-connectors) 01/07: Exit immediately if URI parsing fails

This is an automated email from the ASF dual-hosted git repository.

ChristopherSchultz pushed a commit to branch use-posts-for-writes
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git

commit cf04c04b820107b263755aa362056fb0d4ebfd9d
Author: ChristopherSchultz <ch...@christopherschultz.net>
AuthorDate: Tue Oct 20 14:42:01 2026 +0000

    Exit immediately if URI parsing fails
---
 native/common/jk_status.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/native/common/jk_status.c b/native/common/jk_status.c
index 56c5cd516..842b403b1 100644
--- a/native/common/jk_status.c
+++ b/native/common/jk_status.c
@@ -4813,7 +4813,15 @@ static int JK_METHOD service(jk_endpoint_t *e,
 
     /* Step 1: Process GET params and update configuration */
     if (status_parse_uri(s, p, l) != JK_TRUE) {
-        err = "Error during parsing of URI";
+        if (is_error)
+            *is_error = JK_HTTP_SERVER_ERROR;
+
+        jk_log(l, JK_LOG_ERROR,
+               "Status worker '%s' failed to parse URI",
+               w->name);
+
+        JK_TRACE_EXIT(l);
+        return JK_FALSE;
     }
     status_get_string(p, JK_STATUS_ARG_CMD, NULL, &arg, l);
     cmd = status_cmd_int(arg);


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