You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Ankur Goyal (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/10/04 21:31:34 UTC

[jira] [Issue Comment Edited] (RAVE-252) error in result of osapi.people.getViewer when called in gadget

    [ https://issues.apache.org/jira/browse/RAVE-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120394#comment-13120394 ] 

Ankur Goyal edited comment on RAVE-252 at 10/4/11 7:30 PM:
-----------------------------------------------------------

I was testing two simple gadgets to fetch the owner/viewer in rave.

The two gadgets (Open Social version 0.8) are:
For Owner:
http://hosting.gmodules.com/ig/gadgets/file/117043626034258521516/OpenSocialTestVer-08ForOwner.xml

For Viewer:
http://hosting.gmodules.com/ig/gadgets/file/117043626034258521516/OpenSocialTestVer-08ForViewer.xml

Logic of both gadgets:
Will give an alert message stating whether the var viewer/owner is null or not.
If not null, then it will display the name of the viewer/owner.
Otherwise will show nothing.

Works fine in iGoogle but in Rave displays nothing with the alert showing Viewer/Owner is null.

(While testing in iGoogle, when added for the first time the alert will show "is null" as it will ask for your permission to fetch data. When you click "OK", then you will see the alert again showing "is not null" and the name will be displayed)
                
      was (Author: asgoyal):
    I was testing two simple gadgets to fetch the owner/viewer in rave.

The two gadgets (Open Social version 0.8) are:
For Owner:
http://hosting.gmodules.com/ig/gadgets/file/117043626034258521516/OpenSocialTestVer-08ForOwner.xml

For Viewer:
http://hosting.gmodules.com/ig/gadgets/file/117043626034258521516/OpenSocialTestVer-08ForViewer.xml

Logic of both gadgets:
Will give an alert message stating whether the var viewer/owner is null or not.
If not null, then it will display the name of the viewer/owner.
Otherwise will show nothing.

Works fine in iGoogle but in Rave displays nothing with the alert showing Viewer/Owner is null.

(While testing in iGoogle, when added for the first time the alert will show "is null" as it will ask for your permission to fetch data. When you click "yes", then you will see the alert again showing "is not null" and the name will be displayed)
                  
> error in result of osapi.people.getViewer when called in gadget
> ---------------------------------------------------------------
>
>                 Key: RAVE-252
>                 URL: https://issues.apache.org/jira/browse/RAVE-252
>             Project: Rave
>          Issue Type: Bug
>    Affects Versions: 0.4-INCUBATING
>            Reporter: Xuan Wu
>              Labels: test
>             Fix For: 0.5-INCUBATING
>
>
> Test gadget is:
> http://hosting.gmodules.com/ig/gadgets/file/101094343342449412966/osapiTest.xml
> In Rave the result has error, and displayName is undefined. In igoogle it returns the user displayName correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira