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 DE07210AC7 for ; Tue, 7 Jan 2014 00:50:54 +0000 (UTC) Received: (qmail 37117 invoked by uid 500); 7 Jan 2014 00:50:52 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 37045 invoked by uid 500); 7 Jan 2014 00:50:52 -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 36976 invoked by uid 99); 7 Jan 2014 00:50:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 00:50:52 +0000 Date: Tue, 7 Jan 2014 00:50:52 +0000 (UTC) From: "Siddharth Wagle (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-4232) Config Group API request has empty response body 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-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Siddharth Wagle updated AMBARI-4232: ------------------------------------ Description: # *API call for getting nonexistent group returns empty response with no error explanation*, for example: {noformat} curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X GET {noformat} # *API call for updating existing and nonexistent group returns empty responce*, for example: {noformat} curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag": "HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name": "dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag": "nextgen1"}]}}]' curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/2' -H 'X-Requested-By:anything' -X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag": "HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name": "dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag": "nextgen1"}]}}]' {noformat} was: # *API call for getting nonexistent group returns empty response with no error explanation*, for example: {noformat} curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X GET {noformat} > Config Group API request has empty response body > ------------------------------------------------ > > Key: AMBARI-4232 > URL: https://issues.apache.org/jira/browse/AMBARI-4232 > Project: Ambari > Issue Type: Bug > Components: controller > Affects Versions: 1.5.0 > Reporter: Siddharth Wagle > Assignee: Siddharth Wagle > Fix For: 1.5.0 > > > # *API call for getting nonexistent group returns empty response with no error explanation*, for example: > {noformat} > curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X GET > {noformat} > # *API call for updating existing and nonexistent group returns empty responce*, for example: > {noformat} > curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything' -X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag": "HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name": "dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag": "nextgen1"}]}}]' > curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/2' -H 'X-Requested-By:anything' -X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag": "HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name": "dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag": "nextgen1"}]}}]' > {noformat} -- This message was sent by Atlassian JIRA (v6.1.5#6160)