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);
}
}
|