Author: liem_nguyen
Date: 2009-11-26 22:12:05 -0500 (Thu, 26 Nov 2009)
New Revision: 824
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java
Log:
GTNPORTAL-242 IllegalArgumentException when input invalid URL of portal
Add Return after invoke Redirect to prevent error message in console
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java 2009-11-26
19:20:03 UTC (rev 823)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java 2009-11-27
03:12:05 UTC (rev 824)
@@ -85,6 +85,7 @@
PortalRequestContext context = new PortalRequestContext(app, req, res);
if (context.getPortalOwner().length() == 0) {
res.sendRedirect(req.getContextPath());
+ return;
}
WebuiRequestContext.setCurrentInstance(context);
List<ApplicationLifecycle> lifecycles = app.getApplicationLifecycle();