Author: theute
Date: 2011-09-09 10:17:54 -0400 (Fri, 09 Sep 2011)
New Revision: 7346
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/application/WebuiRequestContext.java
Log:
JBEPP-1155: Infinite loop when edit banner portlet with invalid value
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/application/WebuiRequestContext.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/application/WebuiRequestContext.java 2011-09-09
11:12:12 UTC (rev 7345)
+++
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/application/WebuiRequestContext.java 2011-09-09
14:17:54 UTC (rev 7346)
@@ -178,13 +178,14 @@
public ResourceResolver getResourceResolver(String uri)
{
Application app = getApplication();
+ RequestContext pcontext = this;
while (app != null)
{
ApplicationResourceResolver appResolver = app.getResourceResolver();
ResourceResolver resolver = appResolver.getResourceResolver(uri);
if (resolver != null)
return resolver;
- RequestContext pcontext = getParentAppRequestContext();
+ pcontext = pcontext.getParentAppRequestContext();
if (pcontext != null)
app = pcontext.getApplication();
else