You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2009/09/22 22:50:16 UTC

[jira] Resolved: (SHINDIG-1083) SampleContainer uses Content-Type application/x-www-form-urlencoded, even though Shindig Java disallows it

     [ https://issues.apache.org/jira/browse/SHINDIG-1083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner resolved SHINDIG-1083.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1-BETA3

fixed!


> SampleContainer uses Content-Type application/x-www-form-urlencoded, even though Shindig Java disallows it
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1083
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1083
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java, Javascript 
>    Affects Versions: 1.1-BETA1
>         Environment: Efffects only the Java implmentation
>            Reporter: Rohit Rai
>            Priority: Minor
>             Fix For: 1.1-BETA3
>
>         Attachments: issue120067_9.diff
>
>
> To support OAuth Content-Type - application/x-www-form-urlencoded is explicitly disallowed in the Java implmentation.
> Read http://codereview.appspot.com/28042/show for details.
> While doing this, the effect on existing containers and samples which might be using the content-type wasn't taken into detail. The samplecontainer bundled in shindig is effected by this change.
> Line #117 in samplecontainer.js makes a call to the server -
>        sendRequestToServer('setstate', 'POST',
>            gadgets.io.encodeValues({
>                "fileurl" : stateFileUrl
>            }),
>            opt_callback);
> Which should be handled by SampleContainerHandler service, but gets
> blocked by ApiServlet and throws an error saying "Cannot use disallowed
> Content-Type application/x-www-form-urlencoded"
> These are the files effected -
> samplecontainer.html
> samplecontainer.js
> SampleContainerHandler.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.