jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1547319 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/AccessControlValidator.java
Date Tue, 03 Dec 2013 09:01:06 GMT
Author: jukka
Date: Tue Dec  3 09:01:06 2013
New Revision: 1547319

URL: http://svn.apache.org/r1547319
Log:
OAK-1252: Lazy privilege access in AccessControlValidator

Better exception for an unexpected repository state

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/AccessControlValidator.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/AccessControlValidator.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/AccessControlValidator.java?rev=1547319&r1=1547318&r2=1547319&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/AccessControlValidator.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/AccessControlValidator.java
Tue Dec  3 09:01:06 2013
@@ -228,7 +228,7 @@ class AccessControlValidator extends Def
             } catch (AccessControlException e) {
                 throw accessViolation(10, "Invalid privilege " + privilegeName);
             } catch (RepositoryException e) {
-                throw new RuntimeException(e);
+                throw new IllegalStateException("Failed to read privileges", e);
             }
         }
     }



Mime
View raw message