OSEC over HTTPS troubles

1 view
Skip to first unread message

Paul Fisher

unread,
Apr 21, 2011, 6:43:35 PM4/21/11
to opensocial-ente...@googlegroups.com, te...@zamboni.se.rit.edu
We've been trying to use OSEC on an HTTPS host and have run into some trouble. Whenever we try to add a gadget to the "App Store", it fails with this message from the getGadgetFromUrl:

{"result":{"result":false,"displayMessage":"No gadget was found at [url]","consoleMessage":"org.mitre.portal.service.exception.GadgetNotFoundException"},"gadget":null,"lastVisitedPageId":1}

We haven't changed anything inside of OSEC, only template code. The (slightly munged) diff of our entire OSEC .war file versus the original is attached.

Some of the template changes are so we could adjust the layout, but the substantial ones are for the process of eliminating the automatic prefixing of "http://" to everything, and moving that to one spot, "global shindigRoot".

Any ideas as to why we're having trouble?

Thanks!
zamboni-osec-diff.diff

mfra...@mitre.org

unread,
Apr 22, 2011, 8:17:40 AM4/22/11
to OpenSocial Enterprise Container
Since you are getting a valid response from the OSEC Repository
controller, you should try tailing both the OSEC and Shindig logs. If
you haven't setup a custom log appender for Shindig, you can tail
catalina.out (assuming you are using tomcat). By default, OSEC logs
to $TOMCAT_HOME/logs/portal.log, but it should show up in catalina.out
as well. My guess is that Shindig is getting an error when trying to
fetch the gadget xml definition. Once you have the error(s), we can
help you narrow down where the problem could be.

-Matt

On Apr 21, 6:43 pm, Paul Fisher <thetorpedo...@gmail.com> wrote:
> We've been trying to use OSEC on an HTTPS host and have run into some
> trouble. Whenever we try to add a gadget to the "App Store", it fails with
> this message from the getGadgetFromUrl:
>
> {"result":{"result":false,"displayMessage":"No gadget was found at
> [url]","consoleMessage":"org.mitre.portal.service.exception.GadgetNotFoundE xception"},"gadget":null,"lastVisitedPageId":1}
>
> We haven't changed anything inside of OSEC, only template code. The
> (slightly munged) diff of our entire OSEC .war file versus the original is
> attached.
>
> Some of the template changes are so we could adjust the layout, but the
> substantial ones are for the process of eliminating the automatic prefixing
> of "http://" to everything, and moving that to one spot, "global
> shindigRoot".
>
> Any ideas as to why we're having trouble?
>
> Thanks!
>
>  zamboni-osec-diff.diff
> 2KViewDownload

Ciancetta, Jesse E.

unread,
Apr 22, 2011, 8:31:26 AM4/22/11
to opensocial-ente...@googlegroups.com, te...@zamboni.se.rit.edu

Hi Paul,

 

I think someone else ran into this earlier on (the shindig URL being defined in multiple places, one of which I think was hardcoded to http) and Matt committed a fix for it back on February 7th – I don’t think he uploaded a new war file with the updated code though.

 

I’d suggest building a new war file from the latest source and using that as your starting point.  In that build you should be able to set all the shindig configuration bits in one place (application.properties).

 

--Jesse

mfra...@mitre.org

unread,
Apr 22, 2011, 8:33:47 AM4/22/11
to OpenSocial Enterprise Container
Good point Jesse. I didn't think about this issue, even though I
fixed it :)


On Apr 22, 8:31 am, "Ciancetta, Jesse E." <jc...@mitre.org> wrote:
> Hi Paul,
>
> I think someone else ran into this earlier on (the shindig URL being defined in multiple places, one of which I think was hardcoded to http) and Matt committed a fix for it back on February 7th – I don’t think he uploaded a new war file with the updated code though.
>
> I’d suggest building a new war file from the latest source and using that as your starting point.  In that build you should be able to set all the shindig configuration bits in one place (application.properties).
>
> --Jesse
>
> From: opensocial-ente...@googlegroups.com [mailto:opensocial-ente...@googlegroups.com] On Behalf Of Paul Fisher
> Sent: Thursday, April 21, 2011 6:44 PM
> To: opensocial-ente...@googlegroups.com
> Cc: t...@zamboni.se.rit.edu
> Subject: OSEC over HTTPS troubles
>
> We've been trying to use OSEC on an HTTPS host and have run into some trouble. Whenever we try to add a gadget to the "App Store", it fails with this message from the getGadgetFromUrl:
> {"result":{"result":false,"displayMessage":"No gadget was found at [url]","consoleMessage":"org.mitre.portal.service.exception.GadgetNotFoundE xception"},"gadget":null,"lastVisitedPageId":1}

Paul Fisher

unread,
Apr 22, 2011, 5:27:43 PM4/22/11
to opensocial-ente...@googlegroups.com, te...@zamboni.se.rit.edu
Ciancetta, Jesse E. said (11-04-22 08:31 AM):

> I think someone else ran into this earlier on (the shindig URL being
> defined in multiple places, one of which I think was hardcoded to http)
> and Matt committed a fix for it back on February 7^th – I don’t think he

> uploaded a new war file with the updated code though.
>
> I’d suggest building a new war file from the latest source and using
> that as your starting point. In that build you should be able to set
> all the shindig configuration bits in one place (application.properties).

Yep! This worked perfectly. We also had a problem with Java being
unwilling to accept our certificate signed by our own ghetto CA
(https://sse.se.rit.edu/), but we just had to add that to our keystore.

--
Paul Fisher <http://www.ttdi.us/> --<###<)
Co-Minister of Technology, Society of Software Engineers

Reply all
Reply to author
Forward
0 new messages