jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r164804 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/SessionImpl.java
Date Tue, 26 Apr 2005 15:53:28 GMT
Author: stefan
Date: Tue Apr 26 08:53:27 2005
New Revision: 164804

URL: http://svn.apache.org/viewcvs?rev=164804&view=rev
Log:
fixed bug in Session.checkPermission(path, "read")

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/SessionImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/SessionImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/SessionImpl.java?rev=164804&r1=164803&r2=164804&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/SessionImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/SessionImpl.java Tue Apr
26 08:53:27 2005
@@ -532,6 +532,10 @@
                 String msg = "invalid path: " + absPath;
                 log.warn(msg, mpe);
                 throw new RepositoryException(msg);
+            } catch (AccessDeniedException re) {
+                // otherwise the RepositoryException catch clause will
+                // log a warn message, which is not appropriate in this case.
+                throw new AccessControlException(READ_ACTION);
             }
         }
 



Mime
View raw message