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
Honza, don't forget to set technical note flags and add CCFR in technical notes
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
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?
Michal Vanco <mvanco> made a comment on jira GTNPORTAL-2388 Kien, can you please provide some update for this issue?
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"
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
Verified again at 5.2.2 CR01