Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Peter Clijsters
Opensocial gadgets and Liferay on HTTPS
April 23, 2012 6:47 AM
Answer

Peter Clijsters

Rank: New Member

Posts: 1

Join Date: April 23, 2012

Recent Posts

Hi,

We've ran into an issue with CE 6.1 that some Opensocial gadgets would not render correctly (or at all). We've traced this issue to some Shindig configuration errors (note that Apache Shindig is the rendering engine for the Opensocial gadgets in Liferay).

The URL's Shindig uses when rendering gadgets are defined in liferay/tomcat-7.0.23/webapps/opensocial-portlet/WEB-INF/classes/containers/default/container.js
In this file, there are some hard references to "http" URL's. I've changed these to "//" which will be replaced with the protocol (http / https) used. I haven't had time to test this fully, but if this does not work for you, substitute it with "https" instead.

The entries that i've modified in the above file:
"gadgets.jsUriTemplate" : "//%host%/opensocial-portlet/gadgets/js/%js%",
"gadgets.osDataUri" : "//%host%/opensocial-portlet/rpc",
"defaultShindigTestHost": "//%host%",

In the same file, in the gadgets.features - opensocial JSON struct:
"path" : "//%host%/opensocial-portlet/rpc",
"invalidatePath" : "//%host%/opensocial-portlet/rpc",


After these modifications, restart Liferay.

P.
Matthieu R.
RE: Opensocial gadgets and Liferay on HTTPS
September 10, 2012 11:00 PM
Answer

Matthieu R.

Rank: Junior Member

Posts: 44

Join Date: July 18, 2012

Recent Posts

Thanks a lot. You saved a lot of my time!
Sergii Kryshtop
RE: Opensocial gadgets and Liferay on HTTPS
March 11, 2013 8:38 AM
Answer

Sergii Kryshtop

Rank: New Member

Posts: 1

Join Date: February 22, 2013

Recent Posts

Hey,
I've followed your way and after I've changed the container.js I've received an error that says:
Caused by: org.json.JSONException: A JSONObject text must begin with '{' at character 1 of ?/*
Dennis Ju
RE: Opensocial gadgets and Liferay on HTTPS
April 23, 2013 5:09 PM
Answer

Dennis Ju

LIFERAY STAFF

Rank: Regular Member

Posts: 118

Join Date: September 30, 2010

Recent Posts

Are you using JBoss? You may need to strip out all comments from container.js as the JBoss parser doesn't play well with comments in .js files.
Dennis Ju
RE: Opensocial gadgets and Liferay on HTTPS
April 23, 2013 5:17 PM
Answer

Dennis Ju

LIFERAY STAFF

Rank: Regular Member

Posts: 118

Join Date: September 30, 2010

Recent Posts

This issue will be fixed in LPS-34686