tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46095] New: fail_on_status extension not work correctly
Date Mon, 27 Oct 2008 09:47:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46095

           Summary: fail_on_status extension not work correctly
           Product: Tomcat Connectors
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mashmk02@gmail.com


Created an attachment (id=22780)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22780)
patch for jk_uri_worker_map.c

When fail_on_status extension is set with two values, it works correctly . 
 JkMount /*.jsp wk01;fail_on_status=500,501

However fail_on_status is set with three or more values, it not works
correctly.
In the following example, 502 and 503 are ignored.
 JkMount /*.jsp wk01;fail_on_status=500,501,502,503

Index: mod_jk-head/native/common/jk_uri_worker_map.c
===================================================================
--- mod_jk-head/native/common/jk_uri_worker_map.c       (revision 708069 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=708069
))
+++ mod_jk-head/native/common/jk_uri_worker_map.c       (working copy)
@@ -457,7 +457,7 @@
     cnt = 0;
 #ifdef _MT_CODE_PTHREAD
     for (status = strtok_r(status, ", ", &lasts);
-         status; status = strtok_r(NULL, "&", &lasts)) {
+         status; status = strtok_r(NULL, ", ", &lasts)) {
 #else
     for (status = strtok(status, ", "); status; status = strtok(NULL, ", ")) {
 #endif

regards.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message