Return-Path: Delivered-To: apmail-incubator-shindig-dev-archive@locus.apache.org Received: (qmail 40321 invoked from network); 22 Jan 2009 19:42:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2009 19:42:23 -0000 Received: (qmail 9152 invoked by uid 500); 22 Jan 2009 19:42:21 -0000 Delivered-To: apmail-incubator-shindig-dev-archive@incubator.apache.org Received: (qmail 9133 invoked by uid 500); 22 Jan 2009 19:42:21 -0000 Mailing-List: contact shindig-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: shindig-dev@incubator.apache.org Delivered-To: mailing list shindig-issues@incubator.apache.org Received: (qmail 9116 invoked by uid 99); 22 Jan 2009 19:42:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2009 11:42:21 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2009 19:42:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A4EF234C48B for ; Thu, 22 Jan 2009 11:41:59 -0800 (PST) Message-ID: <513759208.1232653319551.JavaMail.jira@brutus> Date: Thu, 22 Jan 2009 11:41:59 -0800 (PST) From: "Brian Eaton (JIRA)" To: shindig-issues@incubator.apache.org Subject: [jira] Commented: (SHINDIG-882) Get complete set of response headers. In-Reply-To: <351976628.1232630879689.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SHINDIG-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666269#action_12666269 ] Brian Eaton commented on SHINDIG-882: ------------------------------------- The original rationale for not returning all headers is here: http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/51b016b80e9d21e6 Almost no gadgets actually need any headers, and even the gadgets that do need some headers don't need all of them. It would be wasteful to return all of that data. > Get complete set of response headers. > ------------------------------------- > > Key: SHINDIG-882 > URL: https://issues.apache.org/jira/browse/SHINDIG-882 > Project: Shindig > Issue Type: Wish > Components: Common Components (Java) > Reporter: Andrey Parfonov > > We are trying to use gadget for WebDAV browsing. Real HTTP method passed via 'X-HTTP-Method Override' (for example OPTIONS) and fake HTTP method (for example POST). Sever replace POST to OPTIONS before makes WebDAV request and return correct response with header 'Allow'. But this is important for WebDAV header is missing in method org.apache.shindig.gadgets.FetchResponseUtils#getResponseAsJson. > Code : > JSONObject resp = new JSONObject(); > resp.put("rc", response.getHttpStatusCode()); > resp.put("body", body); > JSONObject headers = new JSONObject(); > addHeaders(headers, response, "set-cookie"); > addHeaders(headers, response, "location"); > resp.put("headers", headers); > // Merge in additional response data > for (Map.Entry entry : response.getMetadata().entrySet()) { > resp.put(entry.getKey(), entry.getValue()); > } > return resp; > According to code, only headers "set-cookie", "location" being add to JSON response. Can someone explain what is realy problem add complete set of response headers? And why this restriction applied ? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.