(tomcat) branch main updated: Revert
[email protected] Fri, 31 Jul 2026 17:43:29 +0000
| Newsgroups | gmane.comp.jakarta.tomcat.devel |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the ASF dual-hosted git repository.
rmaucher 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 76fcabc563 Revert
76fcabc563 is described below
commit 76fcabc563bd1e47089a175d92823cea39f60642
Author: remm <[email protected]>
AuthorDate: Fri Jul 31 19:43:16 2026 +0200
Revert
---
java/org/apache/catalina/valves/CrawlerSessionManagerValve.java | 2 +-
webapps/docs/changelog.xml | 7 -------
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java b/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java
index 4f7ef7d9fe..c67229d9be 100644
--- a/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java
+++ b/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java
@@ -249,7 +249,7 @@ public class CrawlerSessionManagerValve extends ValveBase {
log.trace(request.hashCode() + ": UserAgent=" + uaHeader);
}
- if (uaPattern != null && uaPattern.matcher(uaHeader).find()) {
+ if (uaPattern != null && uaPattern.matcher(uaHeader).matches()) {
isBot = true;
if (log.isTraceEnabled()) {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index c91d9ffaa1..2ebfb72332 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -288,13 +288,6 @@
attribute is not available or not configured for the current user.
(markt)
</fix>
- <fix>
- Fix matching the crawler user-agents of
- <code>CrawlerSessionManagerValve</code> with patterns of the style
- of the default
- <code>.*[bB]ot.*|.*Yahoo! Slurp.*|.*Feedfetcher-Google.*</code>
- pattern and documentation. (remm)
- </fix>
</changelog>
</subsection>
<subsection name="Coyote">