Revision: 1751
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1751&view=revAuthor: ian_roberts
Date: 2009-10-27 11:35:49 +0000 (Tue, 27 Oct 2009)
Log Message:
-----------
More sensible error message if no session is found.
Modified Paths:
--------------
trunk/sventon/extras/src/CowSecurityInterceptor.java
Modified: trunk/sventon/extras/src/CowSecurityInterceptor.java
===================================================================
--- trunk/sventon/extras/src/CowSecurityInterceptor.java 2009-10-27 10:37:49 UTC (rev 1750)
+++ trunk/sventon/extras/src/CowSecurityInterceptor.java 2009-10-27 11:35:49 UTC (rev 1751)
@@ -45,8 +45,11 @@
}
if(cowSessionID == null) {
- // redirect back to cow somewhere...
- //response.sendRedirect(...)
+ logger.warn("No CoW session ID found in request or HTTPSession.");
+ RequestDispatcher noSessionDispatcher = ctx.getRequestDispatcher(
+ "/WEB-INF/cow-no-session.jsp");
+ noSessionDispatcher.forward(request, response);
+ return false;
}
else {
httpSession.setAttribute(COW_SESSION_PARAM, cowSessionID);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits