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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to