This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 211ad8c6d3 Note ordering requirements for Semaphore, Persistence and
Rewrite
211ad8c6d3 is described below
commit 211ad8c6d3f423dc9c0d52fdfbfbf2f3575586e2
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 | 5 +++++
webapps/docs/config/valve.xml | 9 +++++++++
2 files changed, 14 insertions(+)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 0908deb69d..48a981f1cb 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -647,6 +647,11 @@
Tapestry attributes, used for locale session sorting. (remm)
</update>
<!-- Entries for backport and removal before 12.0.0-M1 below this line
-->
+ <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">
diff --git a/webapps/docs/config/valve.xml b/webapps/docs/config/valve.xml
index 68196cbe86..ef3fd275fa 100644
--- a/webapps/docs/config/valve.xml
+++ b/webapps/docs/config/valve.xml
@@ -2589,6 +2589,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>
@@ -2683,6 +2687,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]