Bug 793579 (JBEPP-693)

Summary: Gadget proxy and cache configuration doesn't work
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Gary Hu <garyhu2>
Component: unspecifiedAssignee: Default User <jbpapp-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: epp-bugs, zhenyu.zhang
Target Milestone: ---   
Target Release: 5.1.0.CR01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-693
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-01 10:13:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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