You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Kevin Brown (JIRA)" <ji...@apache.org> on 2008/04/15 09:49:05 UTC
[jira] Closed: (SHINDIG-183) OAuth for JSON targets is broken
[ https://issues.apache.org/jira/browse/SHINDIG-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Brown closed SHINDIG-183.
-------------------------------
Resolution: Fixed
Applied in r648154. Thanks!
> OAuth for JSON targets is broken
> --------------------------------
>
> Key: SHINDIG-183
> URL: https://issues.apache.org/jira/browse/SHINDIG-183
> Project: Shindig
> Issue Type: Bug
> Components: Gadget Rendering Server (Java)
> Reporter: Dirk Balfanz
> Attachments: patch-empty-json-response.txt
>
>
> Currently, OAuth for JSON targets is broken. When a Gadget does a makeRequest with ContentType.JSON and AuthorizationType.AUTHENTICATED (i.e. OAuth), then typically the first roundtrip between shindig and the makeRequest target is an OAuth call to obtain a request token. The response text at that point will be empty. Which currently causes a "text has no properties" error when the response handler tries to parse the received JSON, and breaks the OAuth flow.
> The attached patch fixes the issue by allowing JSON responses that have an empty body.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.