You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Howard Gao (Jira)" <ji...@apache.org> on 2023/03/06 08:54:00 UTC

[jira] [Closed] (ARTEMIS-4189) NettyConnection.isSameTarget() should compare host names by IPs

     [ https://issues.apache.org/jira/browse/ARTEMIS-4189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard Gao closed ARTEMIS-4189.
-------------------------------
    Resolution: Won't Fix

> NettyConnection.isSameTarget() should compare host names by IPs
> ---------------------------------------------------------------
>
>                 Key: ARTEMIS-4189
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4189
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.28.0
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> The method just compares the host names using string equals. However when one host name is in IP form (like "10.7.2.2") it should try to resolve the addresses of the host name and make sure they are equal if one of the IP addresses matches. Otherwise it may return wrong comparison result.
> Also when comparing localhost it should take care of the case where the host is absent from the transport configuration.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)