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 13BD1100EA for ; Tue, 27 May 2014 18:20:03 +0000 (UTC) Received: (qmail 51104 invoked by uid 500); 27 May 2014 18:20:02 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50922 invoked by uid 500); 27 May 2014 18:20:02 -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 50913 invoked by uid 99); 27 May 2014 18:20:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 18:20:02 +0000 Date: Tue, 27 May 2014 18:20:02 +0000 (UTC) From: "Srimanth Gunturi (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-5902) Views: Set Accept header to "text/plain" for some requests. 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-5902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010038#comment-14010038 ] Srimanth Gunturi commented on AMBARI-5902: ------------------------------------------ +1 for patch. > Views: Set Accept header to "text/plain" for some requests. > ----------------------------------------------------------- > > Key: AMBARI-5902 > URL: https://issues.apache.org/jira/browse/AMBARI-5902 > Project: Ambari > Issue Type: Bug > Components: client > Affects Versions: 1.6.1 > Reporter: Antonenko Alexander > Assignee: Antonenko Alexander > Fix For: 1.6.1 > > Attachments: AMBARI-5902.patch > > > For managed resource GET calls I wanted JSON response. > {code} > { > "a": "b" > } > {code} > Keeping {code}@Produces({"application/json"}){code} on the @GET method gives a string-serialized output of the JSON > {code} > "{\"a\":\"b\"}" > {code} > However when I keep {code}@Produces({"text/plain", "application/json"}){code} correctly produces JSON. > *Temporary UI Fix: Set Accept header to "text/plain" for some requests.* -- This message was sent by Atlassian JIRA (v6.2#6252)