You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2014/03/25 14:16:18 UTC

[jira] [Resolved] (QPID-5633) [Java Broker] Setting of attribute on http management plugin corrupts the broker configuration store

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

Keith Wall resolved QPID-5633.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.29

Changes look good.  I agree with you Rob that these changes should go into 0.28 too.

> [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
>            Assignee: Keith Wall
>            Priority: Critical
>             Fix For: 0.29
>
>         Attachments: QPID-5633.patch
>
>
> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org