[ 
https://issues.apache.org/jira/browse/QPID-5633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943756#comment-13943756
 ] 

Keith Wall commented on QPID-5633:
----------------------------------

This regression was introduced by QPID-5579 (Sun Feb 23 18:38:07 2014).  That 
change meant that 
org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener.getConfiguredObjectType(ConfiguredObject)
 identifies HttpManagement as the HttpManagementConfiguration interface, rather 
than as the Plugin interface, hence the corruption of the JSON store with the 
name httpmanagementconfigurations.

It seems to me that StoreConfigurationChangeListener.getConfiguredObjectType 
algorithm needs to be changed to account for the deeper hierarchy.   I think it 
now needs to identify the immediate sub-interface of ConfiguredObject.


> [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, 0.28
>            Reporter: Keith Wall
>            Priority: Critical
>
> 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]

Reply via email to