This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-6.1.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-6.1.x by this push:
new 5074493223 AMQ-9772: Remove warning for uncovered methods on the
WebSocket transport (#1505)
5074493223 is described below
commit 5074493223403381b9143ed5181491f76e019cc7
Author: JB Onofré <[email protected]>
AuthorDate: Tue Nov 4 17:59:20 2025 +0100
AMQ-9772: Remove warning for uncovered methods on the WebSocket transport
(#1505)
---
.../org/apache/activemq/transport/WebTransportServerSupport.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/activemq-http/src/main/java/org/apache/activemq/transport/WebTransportServerSupport.java
b/activemq-http/src/main/java/org/apache/activemq/transport/WebTransportServerSupport.java
index 3cfeda36ac..f258e96854 100644
---
a/activemq-http/src/main/java/org/apache/activemq/transport/WebTransportServerSupport.java
+++
b/activemq-http/src/main/java/org/apache/activemq/transport/WebTransportServerSupport.java
@@ -120,6 +120,14 @@ abstract public class WebTransportServerSupport extends
TransportServerSupport {
mapping.setMethod("TRACE");
mapping.setPathSpec("/");
securityHandler.addConstraintMapping(mapping);
+
+ constraint = new Constraint();
+ constraint.setName("allow");
+ mapping = new ConstraintMapping();
+ mapping.setConstraint(constraint);
+ mapping.setMethodOmissions(new String[]{ "TRACE" });
+ mapping.setPathSpec("/");
+ securityHandler.addConstraintMapping(mapping);
}
public void setHttpOptions(Map<String, Object> options) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact