Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 824860

Summary: Error while rendering doodle gadget when source is dead
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: hfnukal <hfnukal>
Component: PortalAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.2.2.ER01CC: epp-bugs, mvecera, theute
Target Milestone: ---   
Target Release: 5.2.2.ER01   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:19:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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

Comment 10 Red Hat Bugzilla 2025-02-10 03:19:56 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.