Bug 793579 (JBEPP-693) - Gadget proxy and cache configuration doesn't work
Summary: Gadget proxy and cache configuration doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: JBEPP-693
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: unspecified
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0.CR01
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-22 22:44 UTC by Gary Hu
Modified: 2012-02-28 16:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-01 10:13:52 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-1712 0 None None None Never
Red Hat Issue Tracker JBEPP-693 0 None None None Never

Description Gary Hu 2010-11-22 22:44:45 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A00000045ruY&sfdc.override=1
project_key: JBEPP

It seems that the Gadget proxy and cache configurations in eXoGadgetServer.war/WEB-INF/classes/containers/default/container.js don't take effect. 

Here is how this issue could be reproduced.

1) create a remote gadget that includes an image, for example: <img src='http://www.google.com/images/logo_sm.gif' >

2) modify the  eXoGadgetServer.war/WEB-INF/classes/containers/default/container.js
   change the default setting:
          "gadgets.content-rewrite" : {
                     "ga  "include-urls": ".*",
                      "exclude-urls": "",
                      "include-tags": ["link", "script", "embed", "img", "style"],
                      "expires": "86400",
                      "proxy-url": "/eXoGadgetServer/gadgets/proxy?url=",
                      "concat-url": "/eXoGadgetServer/gadgets/concat?"
             },
   to
             "gadgets.content-rewrite" : {
                     "ga  "include-urls": ".*",
                      "exclude-urls": "",
                      "include-tags": ["link", "script", "embed", "img", "style"],
                      "expires": "0",
                      "proxy-url": "",
                      "concat-url": "/eXoGadgetServer/gadgets/concat?"
             },

     The page source shows
              <img src='/eXoGadgetServer/gadgets/proxy?url=http%3A%2F%2Fwww.google.com/images/logo_sm.gif&gadget=http%3A%2F%2F16.157.132.22%3A8180%2FmyRemoteGadget.xml&fp=-182800334&refresh=86400
     no matter what changes made to the container.js file.

It seems that "proxy-url" and "expires" values are hard-coded.

Comment 1 Thomas Heute 2010-12-01 10:13:52 UTC
The file to modify is actually in:
gatein.ear/lib/exo.portal.gadgets.core-5.0.0-epp-GA.jar/containers/default/container.js

The other one is ignored and has been removed from EPP 5.1

Comment 2 Thomas Heute 2010-12-01 10:14:34 UTC
Release Notes Docs Status: Added: Not Required


Comment 3 Thomas Heute 2010-12-01 10:37:53 UTC
Link: Added: This issue related GTNPORTAL-1712



Note You need to log in before you can comment on or make changes to this bug.