[
https://issues.apache.org/jira/browse/AMBARI-9557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315308#comment-14315308
]
Hudson commented on AMBARI-9557:
--------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #1729 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/1729/])
AMBARI-9557. Slider View fails to initialize when configs have object values
instead of primitives (srimanth) (sgunturi:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c58f1f3afcc381b3ee4a75d62d18683e46d664fb)
*
contrib/views/slider/src/main/java/org/apache/ambari/view/slider/rest/client/AmbariHttpClient.java
> Slider View fails to initialize when configs have object values instead of
> primitives
> -------------------------------------------------------------------------------------
>
> Key: AMBARI-9557
> URL: https://issues.apache.org/jira/browse/AMBARI-9557
> Project: Ambari
> Issue Type: Bug
> Components: contrib
> Affects Versions: 2.0.0
> Reporter: Srimanth Gunturi
> Assignee: Srimanth Gunturi
> Fix For: 2.0.0
>
> Attachments: AMBARI-9557.patch
>
>
> When {{ambari.properties}} has keys with slashes in them:
> {code}
> a/ARTIFACTS/jdk-6u31-linux-x64.bin=
> a/ARTIFACTS/jdk-7u67-linux-x64.tar.gz=
> {code}
> The [http://server:8080/api/v1/services/AMBARI/components/AMBARI_SERVER]
> response has an object as return value in the 'properties' object.
> {code}
> "a" : {
> "ARTIFACTS" : {
> "jdk-6u31-linux-x64.bin" : "",
> "jdk-7u67-linux-x64.tar.gz" : ""
> }
> }
> {code}
> Since the slider view only expects primitives as values of keys, it throws an
> exception.
> {code}
> 14:18:10,634 WARN [qtp1783621909-139] SliderAppsViewControllerImpl:294 -
> Exception determining view status
> java.lang.UnsupportedOperationException: JsonObject
> at com.google.gson.JsonElement.getAsString(JsonElement.java:185)
> at
> org.apache.ambari.view.slider.rest.client.AmbariHttpClient.getAmbariServerConfigs(AmbariHttpClient.java:114)
> at
> org.apache.ambari.view.slider.SliderAppsViewControllerImpl.getViewStatus(SliderAppsViewControllerImpl.java:178)
> at
> org.apache.ambari.view.slider.rest.ViewStatusResource.getViewStatus(ViewStatusResource.java:38)
> at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)