0

I've followed the procedure documented at "Adding new ways to share content"

...but keep getting an error:

Failed to preload gadget http://....

Detailed error: 400 Gadget is not trusted to render in this container. cre.iruntime:cre.iwidget.event:cre.wire:cre.iwidget:cre.iwidget.itemset:cre….ibm.connections.ee:ibm.connections.ee:container.nongadget:open-views.js:4

sharebox error http://i7.minus.com/ibiLz4SSWA5EL8.png

This looks like some sort of trust problem with external servers, but my other gadgets (embedded experience & home page gadgets) on the same external host are all working fine.

What have I missed out in the configuration?

dvdsmpsn
  • 2,839
  • 1
  • 26
  • 40
  • Did you select "trusted" as the security type when adding the gadget? – Frances McMullin May 27 '13 at 07:10
  • Yes, I selected trusted -- as it's required for share gadgets. Just wondered if there's an XML file somewhere that I need to edit to whitelist the fomain hosting the gadget. My opensocial-config.xml allows for all hosts. – dvdsmpsn May 27 '13 at 18:25
  • It *shouldn't* be a domain problem since other gadgets are working, so it should be a "permission to use feature X" issue. I can take a closer look tomorrow but in the meantime you could try rendering with various permissions on the bootstrap page. – Frances McMullin May 27 '13 at 18:29
  • this is weird, I wasn't able to reproduce this on any of my test servers. I would recommend removing some features to see if that helps, or testing with different security levels on the bootstrap page. What version of connections are you running? – Frances McMullin May 28 '13 at 10:02
  • Could you post the gadget XML? – Ryan Baxter May 28 '13 at 12:29
  • Guys, I'm out until Friday - I'll get back to you then. Thanks for your help. – dvdsmpsn May 29 '13 at 08:46
  • http://jirathrowdown.appfusions.com/rest/gadgets/1.0/g/com.appfusions.jira.connections.immersive-for-connections:connections-gadgets/gadgets/jira-sharebox.xml – dvdsmpsn Jul 28 '13 at 15:03
  • The gadget XML is available here: http://jirathrowdown.appfusions.com/rest/gadgets/1.0/g/com.appfusions.jira.connections.immersive-for-connections:connections-gadgets/gadgets/jira-sharebox.xml I've now got this working on the gadget bootstrap page if I select "Feature access" of "Everything (NOTE: not valid for production)". Anything less results in "Detailed error: 400 Gadget is not trusted to render in this container." in the browser console. Note, my gadget is at http://dvdsmpsn.demos.ibm.com:2990/path/to/sharebox.xml and my connections server is at http://connectionsww.demos.ibm.com/ – dvdsmpsn Jul 28 '13 at 15:12
  • Btw: opensocial-config.xml is wide open with developer mode enabled and all servers whitelisted: http://pastebin.com/NMVaS3EH – dvdsmpsn Jul 31 '13 at 09:58
  • Hmm, it looks like this may be a problem with the version of IBM Connections 4.0 - I'm upgrading to CR2 to see if that fixes the problem. – dvdsmpsn Aug 01 '13 at 10:19
  • Scrub that, I'm already on CR3. Is there any problem with CR3? – dvdsmpsn Aug 01 '13 at 14:47
  • not that I'm aware of. I have found that folks use https when they mean http, and the two don't jive when adding them in the administration tab? maybe that's the problem? – Paul Bastide Aug 13 '13 at 00:21

1 Answers1

0

OK, shamefully, it looks like I missed out swapping the security attribute whitelistEnabled="true" to whitelistEnabled="false" in:

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/connectionswwCell01/LotusConnections-config/opensocial-config.xml

Here:

<security whitelistEnabled="false" featureAdminEnabled="true">

More details in this slide: How to add your own OpenSocial Gadgets to IBM Connections.


Of course, in a production system, you'll have to checkout the opensocial config using wsadmin.sh, edit, checkin & restart.

dvdsmpsn
  • 2,839
  • 1
  • 26
  • 40