Problem with gadgets when the host name includes the word "portal"
------------------------------------------------------------------
Key: GTNPORTAL-2184
URL:
https://issues.jboss.org/browse/GTNPORTAL-2184
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Hai Nguyen
When using a host name including the word "portal" the gadgets are not displayed
and we get the following stack trace on the server log:
{code:xml}
org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at
DataText[pos=Position[col=1,line=10],data= uicomponent.renderChild(UIGadgetViewMode.class)
;] for template app:/groovy/gadget/webui/component/UIGadgetPortlet.gtmpl
at
org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:178)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:121)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
...
{code}
How to reproduce:
- Add a new name host to the OS including the word portal (for example: portal-local)
- Run the Gatein server and log in as root
- Add a page (test) with gadgets
- if we use the following url:
http://localhost:8080/portal/private/classic/test =>
the gadgets are displayed without any problem.
- if we use the following url:
http://portal-local:8080/portal/private/classic/test
=> the gadgets are nor displayed and we get the exception
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira