incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danhayw...@apache.org
Subject svn commit: r1206784 - /incubator/isis/trunk/framework/runtimes/dflt/webapp/src/main/java/org/apache/isis/runtimes/dflt/webapp/auth/AuthenticationSessionLookupStrategy.java
Date Sun, 27 Nov 2011 17:54:53 GMT
Author: danhaywood
Date: Sun Nov 27 17:54:52 2011
New Revision: 1206784

URL: http://svn.apache.org/viewvc?rev=1206784&view=rev
Log:
ISIS-135: another attempt to fix the .app / .htmlviewer regression

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=1206784&r1=1206783&r2=1206784&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 17:54:52 2011
@@ -40,9 +40,12 @@ public interface AuthenticationSessionLo
         NO_CACHE;
         
         public static Caching lookup(String booleanStr) {
-            // 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;
+            if(booleanStr == null) {
+                // written this way so that if not specified, then we get the
+                // original behaviour of allowing caching of the AuthSession.
+                return CACHE;
+            }
+            return Boolean.parseBoolean(booleanStr) ? CACHE : NO_CACHE;
         }
 
         public boolean isEnabled() {



Mime
View raw message