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

Keith Wall resolved QPID-4299.
------------------------------

    Resolution: Fixed

At 0.29, Virtual host aliases are no longer created for non AMQP ports, so this 
defect can no longer manifest.  However, if a user creates many AMQP ports, 
this will cause many VHA model objects to be created with the same name.  I'll 
raise a separate JIRA for this issue.

> [Java Broker Web Console] The 2 virtual host aliases with the same names are 
> displayed for virtual host when both http and https are enabled
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-4299
>                 URL: https://issues.apache.org/jira/browse/QPID-4299
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.18, 0.19
>            Reporter: Alex Rudyy
>            Priority: Minor
>
> On starting Java broker with enables http and https web interfaces the 2 
> aliases with the same name "test" are displayed for virtual host "test" in 
> Web management Console.
> The further analysis showed that aliases are created for HTTP and HTTPS ports:
> To get more details I added "port" and "authenticationMethods" attributes 
> into VirtualHostAliasAdapter and started the broker. That gave me the details 
> of aliases:
> "virtualhostaliass" : [ {
>     "id" : "53bfdd22-d1d8-397b-9d3e-5763ad4d5417",
>     "name" : "test",
>     "port" : "0.0.0.0:8080",
>     "authenticationMethods" : [ ]
>   }, {
>     "id" : "47440d0b-7c80-3949-b961-eeae965e9fb5",
>     "name" : "test",
>     "port" : "0.0.0.0:8443",
>     "authenticationMethods" : [ ]
>   } ]
> At the moment virtual host aliases are created for the each broker port( 
> BrokerAdapter#getPorts()). On VirtualHostAdapter creation, broker ports 
> (returned by BrokerAdapter#getPorts()) are iterated and for each port the 
> alias is created. The ports returned by BrokerAdapter#getPorts() contain both 
> HTTP and HTTPS ports which are added into broker ports from the 
> ApplicationRegistry on BrokerAdapter creation. AMQP ports are retrieved from 
> the acceptors which are created after the broker initialization (after broker 
> and virtual host adapters are created)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to