Keith Wall created QPID-5633:
--------------------------------
Summary: [Java Broker] Setting of attribute on http management
plugin corrupts the broker configuration store
Key: QPID-5633
URL: https://issues.apache.org/jira/browse/QPID-5633
Project: Qpid
Issue Type: Bug
Components: Java Broker
Affects Versions: 0.27
Reporter: Keith Wall
Priority: Critical
Fix For: 0.28
Setting of attribute on http management plugin corrupts the broker
configuration store. The management plugin entry is written into wrong field
"httpmanagementconfigurations" instead of "plugins"
{code:javascript}
"httpmanagementconfigurations" : [ {
"createdTime" : 1395152406458,
"httpBasicAuthenticationEnabled" : true,
"id" : "31886f76-71a6-4b5b-b6d8-d57706495f84",
"lastUpdatedBy" : "webadmin",
"lastUpdatedTime" : 1395152536645,
"name" : "httpManagement",
"pluginType" : "MANAGEMENT-HTTP"
} ],
{code}
This causes broker to fail to start with the exception:
{noformat}
xception during startup:
org.apache.qpid.server.configuration.IllegalConfigurationException: Type
attribute is not provided for configuration entry
{"createdTime":1395152406458,"httpBasicAuthenticationEnabled":true,"id":"31886f76-71a6-4b5b-b6d8-d57706495f84","lastUpdatedBy":"webadmin","lastUpdatedTime":1395152536645,"name":"httpManagement","pluginType":"MANAGEMENT-HTTP"}
org.apache.qpid.server.configuration.IllegalConfigurationException: Type
attribute is not provided for configuration entry
{"createdTime":1395152406458,"httpBasicAuthenticationEnabled":true,"id":"31886f76-71a6-4b5b-b6d8-d57706495f84","lastUpdatedBy":"webadmin","lastUpdatedTime":1395152536645,"name":"httpManagement","pluginType":"MANAGEMENT-HTTP"}
at
org.apache.qpid.server.configuration.store.MemoryConfigurationEntryStore.toEntry(MemoryConfigurationEntryStore.java:566)
at
org.apache.qpid.server.configuration.store.MemoryConfigurationEntryStore.toEntry(MemoryConfigurationEntryStore.java:524)
at
org.apache.qpid.server.configuration.store.MemoryConfigurationEntryStore.load(MemoryConfigurationEntryStore.java:294)
at
org.apache.qpid.server.configuration.store.JsonConfigurationEntryStore.<init>(JsonConfigurationEntryStore.java:61)
at
org.apache.qpid.server.configuration.store.factory.JsonConfigurationStoreFactory.createStore(JsonConfigurationStoreFactory.java:34)
at
org.apache.qpid.server.configuration.BrokerConfigurationStoreCreator.createStore(BrokerConfigurationStoreCreator.java:75)
at org.apache.qpid.server.Broker.startupImpl(Broker.java:120)
at org.apache.qpid.server.Broker.access$000(Broker.java:48)
at org.apache.qpid.server.Broker$1.run(Broker.java:96)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.qpid.server.Broker.startup(Broker.java:91)
at org.apache.qpid.server.Main.startBroker(Main.java:373)
at org.apache.qpid.server.Main.execute(Main.java:298)
at org.apache.qpid.server.Main.<init>(Main.java:134)
at org.apache.qpid.server.Main.main(Main.java:125)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]