Bug 824860 - Error while rendering doodle gadget when source is dead
Summary: Error while rendering doodle gadget when source is dead
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.2.ER01
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 5.2.2.ER01
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-24 13:09 UTC by hfnukal@redhat.com
Modified: 2020-04-27 01:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When the Doodle gadget was added to a dashboard, and the source website supplying the gadget metadata was unavailable, the gadget was not loaded, and a user interface error occurred. The fix introduces a more informative error message to all gadgets that require external sources, which displays in the user interface at the time the error occurs. This helps the user diagnose the problem easier, and fixes the issue.
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-2388 0 Major Resolved Error while rendering doodle gadget when source is dead 2015-11-17 11:04:54 UTC

Description hfnukal@redhat.com 2012-05-24 13:09:45 UTC
Step to reproduce :

Login on the intranet
Open your dashboard
Add a gadgets
Select doodle gadget and add it on your dashboard
error : see attach screenshot
Doodle.com was down at this moment but we should handle this kind of exception and display a friendly message.

2nd error :

TypeError: metadata.modulePrefs is undefined : 
eXo.gadget.UIGadget.createGadget('http://www.doodle.com/opensocial/gadget.xml','content-536b0f09-d3e5-49fa-a4e9-a5243e271976', {"error":"Failed to get gadget metadata.","secureToken":"default:-54gmq1IiOoqe50Ltr5evB1vR-3nY6gX6FjjdAvqE8t7OtC_hPZeHaKqfuFZPeme4LntDRoY129Qdr2snp7Dr-es3wunKulO1xdaiBpd9hQ9J1vdQPGELdM2Vgi7Lg_1hs2LJV7pvXuNAQkAB6d4x84yJPv6UkHNHDUJSx35ZItUMUYc1HRdcNrdpGohKkpxqwu9F-FfFb6ZuObyJ25SK8BKKWjygpXFgXjM_fznHcre7ejCmz1dWYZ5NWockaWnIWuyPcKZMhx24PL-2ey1ML1yf3k","url":"http://www.doodle.com/opensocial/gadget.xml"}, null, 'home', 'http://int.exoplatform.org/eXoGadgetServer/gadgets', 0, 0, 0)  -- 9

Comment 1 Thomas Heute 2012-06-07 07:05:59 UTC
Honza, don't forget to set technical note flags and add CCFR in technical notes

Comment 2 hfnukal@redhat.com 2012-06-07 15:21:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: Loading gadget when source was down
Consequence: Gadget not loaded, broken UI
Fix: Handle error on background
Result: Show user friendly error

Comment 3 Michal Vanco 2012-07-13 10:13:14 UTC
Kien/Honza - mentioned screenshot is missing again.
Currently when I use url: http://www.doodle.com/opensocial/gadget.xml for gadget, it returns that URL is down or invalid.
Is this expected behavior?

Comment 4 JBoss JIRA Server 2012-08-01 12:47:08 UTC
Michal Vanco <mvanco> made a comment on jira GTNPORTAL-2388

Kien, can you please provide some update for this issue?

Comment 5 JBoss JIRA Server 2012-08-02 01:58:34 UTC
kien nguyen <nguyenanhkien2a> made a comment on jira GTNPORTAL-2388

After this issue fix, when a gadget source is down, we will display a warning message in body of gadget window like "the url: http://www.doodle.com/opensocial/gadget.xml is down or invalid"

Comment 6 Jared MORGAN 2012-08-21 02:13:25 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,4 +1 @@
-Cause: Loading gadget when source was down
+When the Doodle gadget was added to a dashboard, and the source website supplying the gadget metadata was unavailable, the gadget was not loaded, and a user interface error occurred. The fix introduces a more informative error message to all gadgets that require external sources, which displays in the user interface at the time the error occurs. This helps the user diagnose the problem easier, and fixes the issue.-Consequence: Gadget not loaded, broken UI
-Fix: Handle error on background
-Result: Show user friendly error

Comment 7 Viliam Rockai 2012-08-28 11:20:20 UTC
Verified again at 5.2.2 CR01


Note You need to log in before you can comment on or make changes to this bug.