[java-opensaml COMMIT] /trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/ServletRequestScopedStora...

noreply at shibboleth.net noreply at shibboleth.net
Tue Nov 5 13:17:32 EST 2013


Author: scantor
Date: Tue Nov  5 13:17:31 2013
New Revision: 3497

URL: http://svn.shibboleth.net/view/java-opensaml?rev=3497&view=rev
Log:
Clean up expired/invalid cookie data.

Modified:
    trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/ServletRequestScopedStorageService.java

Modified: trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/ServletRequestScopedStorageService.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/ServletRequestScopedStorageService.java?rev=3497&r1=3496&r2=3497&view=diff
==============================================================================
--- trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/ServletRequestScopedStorageService.java (original)
+++ trunk/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/ServletRequestScopedStorageService.java Tue Nov  5 13:17:31 2013
@@ -314,10 +314,11 @@
             setDirty(false);
         } catch (NullPointerException | ClassCastException | ArithmeticException | JsonException e) {
             contextMap.clear();
-            setDirty(false);
+            setDirty(true);
             log.error("Exception while parsing context map", e);
             throw new IOException("Found invalid data structure while parsing context map", e);
         } catch (DataSealerException e) {
+            setDirty(true);
             log.error("Exception unwrapping secured data", e);
             throw new IOException("Exception unwrapping secured data", e);
         }



More information about the commits mailing list