Gadget proxy and cache configuration doesn't work
-------------------------------------------------
Key: GTNPORTAL-1681
URL:
https://jira.jboss.org/browse/GTNPORTAL-1681
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Gary Hu
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/i...
no matter what changes made to the container.js file.
It seems that "proxy-url" and "expires" values are hard-coded.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira