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

rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit c9e88e9481afef4e7cc21c4aab98a8bb7da918d9
Author: opencode <[email protected]>
AuthorDate: Tue Sep 29 18:05:49 2026 +0200

    Fix FindLeaksTask response constraint handling when statusLine is false
    
    With statusLine=false the Manager response contains only leaked
    context paths, which the inherited "OK -" first-line constraint
    treated as an error, inverting success and failure. Ignore the
    response constraint internally for that mode.
---
 java/org/apache/catalina/ant/FindLeaksTask.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/java/org/apache/catalina/ant/FindLeaksTask.java 
b/java/org/apache/catalina/ant/FindLeaksTask.java
index 3428816326..bd9ae4dbc2 100644
--- a/java/org/apache/catalina/ant/FindLeaksTask.java
+++ b/java/org/apache/catalina/ant/FindLeaksTask.java
@@ -58,6 +58,9 @@ public class FindLeaksTask extends AbstractCatalinaTask {
     @Override
     public void execute() throws BuildException {
         super.execute();
+        if (!statusLine) {
+            setIgnoreResponseConstraint(true);
+        }
         execute("/findleaks?statusLine=" + Boolean.toString(statusLine));
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to