Author: liem_nguyen
Date: 2009-11-26 03:15:43 -0500 (Thu, 26 Nov 2009)
New Revision: 808
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java
Log:
GTNPORTAL-242 IllegalArgumentException when input invalid URL of portal
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
05:01:55 UTC (rev 807)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java 2009-11-26
08:15:43 UTC (rev 808)
@@ -82,7 +82,10 @@
res.setHeader("Cache-Control", "no-cache");
PortalApplication app =
controller.getApplication(PortalApplication.PORTAL_APPLICATION_ID);
- WebuiRequestContext context = new PortalRequestContext(app, req, res);
+ PortalRequestContext context = new PortalRequestContext(app, req, res);
+ if (context.getPortalOwner().isEmpty()) {
+ res.sendRedirect(req.getContextPath());
+ }
WebuiRequestContext.setCurrentInstance(context);
List<ApplicationLifecycle> lifecycles = app.getApplicationLifecycle();
try
Show replies by date