[
https://issues.apache.org/jira/browse/ARTEMIS-1538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiri Daněk updated ARTEMIS-1538:
--------------------------------
Description:
When attempting to use the ARTEMIS-1469 feature {{trustAll}} option, I noticed
that the client is ignoring this option. The reason seems to be that the option
has not been added to the allowed list {{allowableConnectorKeys}}.
If I do the following change and rebuild active-jms-client jar, then I am able
to use {{trustAll}}
{code}
index 5d86aaafa..d89cfb5ff 100644
---
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
+++
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
@@ -355,6 +355,7 @@ public class TransportConstants {
allowableConnectorKeys.add(TransportConstants.NETTY_CONNECT_TIMEOUT);
allowableConnectorKeys.add(TransportConstants.USE_DEFAULT_SSL_CONTEXT_PROP_NAME);
allowableConnectorKeys.add(TransportConstants.HANDSHAKE_TIMEOUT);
+ allowableConnectorKeys.add(TransportConstants.TRUST_ALL_PROP_NAME);
ALLOWABLE_CONNECTOR_KEYS =
Collections.unmodifiableSet(allowableConnectorKeys);
{code}
was:
When attempting to use the ARTEMIS-1469 feature {{trustAll}} option, I noticed
that the broker is ignoring this option. The reason seems to be that the option
has not been added to the allowed list {{allowableConnectorKeys}}.
If I do the following change and rebuild active-jms-client jar, then I am able
to use {{trustAll}}
{code}
index 5d86aaafa..d89cfb5ff 100644
---
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
+++
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
@@ -355,6 +355,7 @@ public class TransportConstants {
allowableConnectorKeys.add(TransportConstants.NETTY_CONNECT_TIMEOUT);
allowableConnectorKeys.add(TransportConstants.USE_DEFAULT_SSL_CONTEXT_PROP_NAME);
allowableConnectorKeys.add(TransportConstants.HANDSHAKE_TIMEOUT);
+ allowableConnectorKeys.add(TransportConstants.TRUST_ALL_PROP_NAME);
ALLOWABLE_CONNECTOR_KEYS =
Collections.unmodifiableSet(allowableConnectorKeys);
{code}
> trustAll is ignored when specified in the connectionFactory URI
> ---------------------------------------------------------------
>
> Key: ARTEMIS-1538
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1538
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.4.0
> Reporter: Jiri Daněk
> Assignee: Christopher L. Shannon
> Priority: Minor
> Fix For: 2.5.0
>
>
> When attempting to use the ARTEMIS-1469 feature {{trustAll}} option, I
> noticed that the client is ignoring this option. The reason seems to be that
> the option has not been added to the allowed list {{allowableConnectorKeys}}.
> If I do the following change and rebuild active-jms-client jar, then I am
> able to use {{trustAll}}
> {code}
> index 5d86aaafa..d89cfb5ff 100644
> ---
> a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
> +++
> b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
> @@ -355,6 +355,7 @@ public class TransportConstants {
> allowableConnectorKeys.add(TransportConstants.NETTY_CONNECT_TIMEOUT);
>
> allowableConnectorKeys.add(TransportConstants.USE_DEFAULT_SSL_CONTEXT_PROP_NAME);
> allowableConnectorKeys.add(TransportConstants.HANDSHAKE_TIMEOUT);
> + allowableConnectorKeys.add(TransportConstants.TRUST_ALL_PROP_NAME);
>
> ALLOWABLE_CONNECTOR_KEYS =
> Collections.unmodifiableSet(allowableConnectorKeys);
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)