You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2011/11/27 08:46:48 UTC

svn commit: r1206677 - /incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java

Author: danhaywood
Date: Sun Nov 27 07:46:47 2011
New Revision: 1206677

URL: http://svn.apache.org/viewvc?rev=1206677&view=rev
Log:
ISIS-135: fixing regression (if caching param is not specified, then should default to original behaviour of allowing caching, rather than not)

Modified:
    incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java

Modified: incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java?rev=1206677&r1=1206676&r2=1206677&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java (original)
+++ incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java Sun Nov 27 07:46:47 2011
@@ -40,7 +40,9 @@ public interface AuthenticationSessionLo
         NO_CACHE;
         
         public static Caching lookup(String booleanStr) {
-            return Boolean.parseBoolean(booleanStr)? CACHE: NO_CACHE;
+            // written this way so that if not specified, then we get the
+            // original behaviour of allowing caching of the AuthSession.
+            return !Boolean.parseBoolean(booleanStr)? NO_CACHE: CACHE;
         }
 
         public boolean isEnabled() {