You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alex Rudyy (JIRA)" <ji...@apache.org> on 2012/09/12 16:33:07 UTC
[jira] [Created] (QPID-4299) [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
Alex Rudyy created QPID-4299:
--------------------------------
Summary: [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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org