This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 62769e9ea5 Log a warning rather than throw for an unrecognised action
type
62769e9ea5 is described below
commit 62769e9ea547cdfe42459df29b4a7d5cc5a47c52
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Aug 22 14:02:51 2022 +0100
Log a warning rather than throw for an unrecognised action type
This will facilitate future additions of new functionality.
---
java/org/apache/catalina/ha/session/DeltaRequest.java | 2 +-
webapps/docs/changelog.xml | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/ha/session/DeltaRequest.java
b/java/org/apache/catalina/ha/session/DeltaRequest.java
index c691e6d1f9..4a5c65792f 100644
--- a/java/org/apache/catalina/ha/session/DeltaRequest.java
+++ b/java/org/apache/catalina/ha/session/DeltaRequest.java
@@ -218,7 +218,7 @@ public class DeltaRequest implements Externalizable {
}
break;
default:
- throw new
IllegalArgumentException(sm.getString("deltaRequest.invalidAttributeInfoType",
info));
+
log.warn(sm.getString("deltaRequest.invalidAttributeInfoType", info));
}//switch
}//for
session.endAccess();
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 484214ff04..183597493d 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -187,6 +187,16 @@
</fix>
</changelog>
</subsection>
+ <subsection name="Cluster">
+ <changelog>
+ <fix>
+ To aid future additions of new functionality, rather than throw an
+ <code>IllegalArgumentException</code> if a <code>DeltaRequest</code> is
+ passed an unrecognised action type, a warning message will now be
+ logged. (markt)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Other">
<changelog>
<fix>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]