]
Hai Nguyen resolved GTNPORTAL-2207.
-----------------------------------
Labels: portal-s63 synced (was: portal-s63)
Fix Version/s: 3.2.0-M02
Resolution: Done
Hardcode for getting portal container in LocalizationFilter.java
----------------------------------------------------------------
Key: GTNPORTAL-2207
URL:
https://issues.jboss.org/browse/GTNPORTAL-2207
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Hai Nguyen
Assignee: Hai Nguyen
Labels: portal-s63, synced
Fix For: 3.2.0-M02
In LocalizationFilter.java, we hardcode "portal" for getting RootContainer:
{code:xml}
if (container instanceof RootContainer)
container = (ExoContainer) container.getComponentInstance("portal");
{code}
This affect if we change default context path as article:
http://community.jboss.org/wiki/ChangeGateInContextPath. We will get the exception because
NULL container.
The code should be change to:
{code:xml}
if (container instanceof RootContainer)
container = (ExoContainer)
container.getComponentInstance(req.getContextPath().substring(1));
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: