Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B54BD179AA for ; Tue, 10 Feb 2015 22:12:12 +0000 (UTC) Received: (qmail 21192 invoked by uid 500); 10 Feb 2015 22:12:12 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 21043 invoked by uid 500); 10 Feb 2015 22:12:12 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 20810 invoked by uid 99); 10 Feb 2015 22:12:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2015 22:12:12 +0000 Date: Tue, 10 Feb 2015 22:12:12 +0000 (UTC) From: "Srimanth Gunturi (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-9557) Slider View fails to initialize when configs have object values instead of primitives MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-9557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Srimanth Gunturi updated AMBARI-9557: ------------------------------------- Attachment: AMBARI-9557.patch > 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)