portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r404936 - /portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/PortalSiteSessionContextImpl.java
Date Mon, 08 May 2006 05:54:35 GMT
Author: rwatler
Date: Sun May  7 22:54:34 2006
New Revision: 404936

URL: http://svn.apache.org/viewcvs?rev=404936&view=rev
Log:
add verbose debugging for page selection fallback reason

Modified:
    portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/PortalSiteSessionContextImpl.java

Modified: portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/PortalSiteSessionContextImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/PortalSiteSessionContextImpl.java?rev=404936&r1=404935&r2=404936&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/PortalSiteSessionContextImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/PortalSiteSessionContextImpl.java
Sun May  7 22:54:34 2006
@@ -215,6 +215,7 @@
             do
             {
                 // attempt to access requested path
+                Exception fallbackException = null;
                 try
                 {
                     return selectRequestPage(requestPath, useHistory);
@@ -225,6 +226,7 @@
                     {
                         throw nnfe;
                     }
+                    fallbackException = nnfe;
                 }
                 catch (SecurityException se)
                 {
@@ -232,6 +234,7 @@
                     {
                         throw se;
                     }
+                    fallbackException = se;
                 }
 
                 // compute fallback request path
@@ -261,7 +264,7 @@
                         // log fallback
                         if (log.isDebugEnabled())
                         {
-                            log.debug("Missing/forbidden page selection fallback: request
path=" + requestPath + ", attempting fallback request path=" + fallbackRequestPath);
+                            log.debug("Missing/forbidden page selection fallback: request
path=" + requestPath + ", attempting fallback request path=" + fallbackRequestPath, fallbackException);
                         }
                         
                         // clear all history entries for fallback



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message