This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new a871aa3 Fix 65404 - Manager status page was truncated
a871aa3 is described below
commit a871aa31a9803f36e4e5d74f1b88cab811d62292
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jun 28 17:29:28 2021 +0100
Fix 65404 - Manager status page was truncated
---
java/org/apache/catalina/manager/StatusTransformer.java | 12 ++++++------
webapps/docs/changelog.xml | 6 ++++++
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/java/org/apache/catalina/manager/StatusTransformer.java
b/java/org/apache/catalina/manager/StatusTransformer.java
index 7577932..d0a0454 100644
--- a/java/org/apache/catalina/manager/StatusTransformer.java
+++ b/java/org/apache/catalina/manager/StatusTransformer.java
@@ -337,11 +337,11 @@ public class StatusTransformer {
ObjectName grpName = null;
- Enumeration<ObjectName> enumeration =
- globalRequestProcessors.elements();
+ Enumeration<ObjectName> enumeration =
globalRequestProcessors.elements();
+ // Find the HTTP/1.1 RequestGroupInfo - BZ 65404
while (enumeration.hasMoreElements()) {
ObjectName objectName = enumeration.nextElement();
- if (name.equals(objectName.getKeyProperty("name"))) {
+ if (name.equals(objectName.getKeyProperty("name")) &&
objectName.getKeyProperty("Upgrade") == null) {
grpName = objectName;
}
}
@@ -407,11 +407,11 @@ public class StatusTransformer {
ObjectName grpName = null;
- Enumeration<ObjectName> enumeration =
- globalRequestProcessors.elements();
+ Enumeration<ObjectName> enumeration =
globalRequestProcessors.elements();
+ // Find the HTTP/1.1 RequestGroupInfo - BZ 65404
while (enumeration.hasMoreElements()) {
ObjectName objectName = enumeration.nextElement();
- if (name.equals(objectName.getKeyProperty("name"))) {
+ if (name.equals(objectName.getKeyProperty("name")) &&
objectName.getKeyProperty("Upgrade") == null) {
grpName = objectName;
}
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index edfd1d2..9b9aeef 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -226,6 +226,12 @@
<bug>65385</bug>: Correct the link in the documentation web application
the Maven Central repository. (markt)
</fix>
+ <fix>
+ <bug>65404</bug>: Correct a regression in the fix for <bug>63362</bug>
+ that caused the server status page in the Manager web application to be
+ truncated if HTTP upgrade was used such as when starting a WebSocket
+ connection. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Other">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]