activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (ARTEMIS-1043) NettyConnector not working with IPv6 address
Date Fri, 07 Apr 2017 00:58:41 GMT


ASF subversion and git services commented on ARTEMIS-1043:

Commit ee50ce404201e8509e51fd88fd98411d7711600f in activemq-artemis's branch refs/heads/master
from [~jmesnil]
[;h=ee50ce4 ]

[ARTEMIS-1043] Support IPv6 in NettyConnector

Call IPV6Util.encloseHost when creating the uri used to send the HTTP
ugrade request to ensure that IPv6 address are properly enclosed.


> NettyConnector not working with IPv6 address
> --------------------------------------------
>                 Key: ARTEMIS-1043
>                 URL:
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 1.5.3
>            Reporter: Jeff Mesnil
> Artemis client doesn't correctly enclose IPv6 address when sending HTTP upgrade packet.

> According to [RFC2732 |], section {{2. Literal IPv6
Address Format in URL's Syntax}} and [HTTP header field definition specification|],
correct request URL should be enclosed like following one: {{http://[fe80::56ee:75ff:fe47:c83e]}}

> Following code snippet creates request for URL {{http://fe80::56ee:75ff:fe47:c83e}} 
> {code} 
> HashMap<String, Object> map = new HashMap<String, Object>(); 
> map.put("host", "fe80::56ee:75ff:fe47:c83e"); 
> map.put("port", "8080"); 
> map.put(TransportConstants.HTTP_UPGRADE_ENABLED_PROP_NAME, true); 
> TransportConfiguration transportConfiguration = new TransportConfiguration(NettyConnectorFactory.class.getName(),
> ConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryWithoutHA(JMSFactoryType.CF,
>  connection = cf.createConnection(); 
> {code} 
> This works fine when client connects directly to the server. However it may cause problems
when Artemis connects to proxy which expects IPv6 address correctly enclosed. 
> Artemis client should detect IPv6 address and enclose it, so it conforms to specification.

This message was sent by Atlassian JIRA

View raw message