You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Chirag Shah (JIRA)" <ji...@apache.org> on 2010/03/27 00:25:27 UTC
[jira] Created: (SHINDIG-1310) Issue taming opensocial-0.8
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.
[jira] Commented: (SHINDIG-1310) Issue taming opensocial-0.8
Posted by "Chirag Shah (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (SHINDIG-1310) Issue taming opensocial-0.8
Posted by "Chirag Shah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851018#action_12851018 ]
Chirag Shah commented on SHINDIG-1310:
--------------------------------------
Code Review: http://codereview.appspot.com/810041/show
> 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.
[jira] Resolved: (SHINDIG-1310) Issue taming opensocial-0.8
Posted by "Chirag Shah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chirag Shah resolved SHINDIG-1310.
----------------------------------
Resolution: Fixed
> 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.