This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new af0830aef0 Note ordering requirements for Semaphore, Persistence and
Rewrite
af0830aef0 is described below
commit af0830aef00c7f24f46b6cfc8f745c996e63ec5a
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Nov 27 16:52:17 2026 +0000
Note ordering requirements for Semaphore, Persistence and Rewrite
---
webapps/docs/changelog.xml | 9 +++++++++
webapps/docs/config/valve.xml | 9 +++++++++
2 files changed, 18 insertions(+)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index fb64174491..ce5beab717 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -441,6 +441,15 @@
</fix>
</changelog>
</subsection>
+ <subsection name="Web applications">
+ <changelog>
+ <add>
+ Document the ordering requirements for the
+ <strong>SemaphoreValve</strong> and the
<strong>PersistentValve</strong>
+ when used with the <strong>RewriteValve</strong>. (markt)
+ </add>
+ </changelog>
+ </subsection>
<subsection name="Tribes">
<changelog>
<docs>
diff --git a/webapps/docs/config/valve.xml b/webapps/docs/config/valve.xml
index e3924ad2e0..7045420ae6 100644
--- a/webapps/docs/config/valve.xml
+++ b/webapps/docs/config/valve.xml
@@ -2749,6 +2749,10 @@ RequestHeader unset SSL_CLIENT_ESCAPED_CERT</source>
<li><b><code>permitDenied</code></b> may be overridden to add error
handling
when a permit isn't granted.</li>
</ul>
+ <p>If configured with the <strong>RewriteValve</strong>, it is recommended
+ that the <strong>RewriteValve</strong> is configured before the
+ <strong>SemaphoreValve</strong> to avoid issues with re-written requests
+ consuming an additional permit per rewrite.</p>
</subsection>
@@ -2843,6 +2847,11 @@ RequestHeader unset SSL_CLIENT_ESCAPED_CERT</source>
<p>The <strong>PersistentValve</strong> that implements per-request session
persistence. It is intended to be used with non-sticky load-balancers.</p>
+ <p>If configured with the <strong>RewriteValve</strong>, it is recommended
+ that the <strong>RewriteValve</strong> is configured before the
+ <strong>PersistentValve</strong> to avoid issues with re-written requests
+ consuming an additional permit per rewrite.</p>
+
</subsection>
<subsection name="Attributes">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]