shindig-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chirag Shah (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SHINDIG-1310) Issue taming opensocial-0.8
Date Sat, 27 Mar 2010 00:13:27 GMT

    [ https://issues.apache.org/jira/browse/SHINDIG-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850420#action_12850420
] 

Chirag Shah commented on SHINDIG-1310:
--------------------------------------

Adding the following grant read gets rid of the error:
  ___.grantRead(opensocial.IdSpec, 'Field');

But, the callback handleRequest doesn't gets hit with caja turned on, and the aforementioned
patch.

> Issue taming opensocial-0.8
> ---------------------------
>
>                 Key: SHINDIG-1310
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1310
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>            Reporter: Chirag Shah
>            Priority: Critical
>
> We are seeing the following error 'Cannot read property "USER_ID" from undefined' for
the following gadget using opensocial-0.8.
> Works fine with caja turned off.
> <Module>
>   <ModulePrefs title="opensocial-0.8">
>     <Require feature="opensocial-0.8"/>
>     <Require feature="caja"/>
>   </ModulePrefs>
>   <Content type="html" view="default"><![CDATA[
> <script>
>   function handleRequest(data) {
>     console.log("handleRequest");
>   }         
>   
>   gadgets.util.registerOnLoadHandler(function() {
>     var req = opensocial.newDataRequest();
>     var fields = ["AppField1"]; 
>     req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER), "viewer");
    
>     var spec = new opensocial.IdSpec();                                             
    
>     spec.setField(opensocial.IdSpec.Field.USER_ID, opensocial.IdSpec.PersonId.VIEWER);
>     req.add(req.newFetchPersonAppDataRequest(spec, fields), "viewer_data");         
    
>     req.send(handleRequest);
>   }); 
> </script>
>   ]]>
>   </Content>
> </Module>

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


Mime
View raw message