Skip to content

Commit

Permalink
Merge pull request #233 from gregjan/mode-3.7.1
Browse files Browse the repository at this point in the history
fixed fcrepo for modeshape 3.7.1

Resolves: https://www.pivotaltracker.com/story/show/64183776
  • Loading branch information
Andrew Woods committed Feb 11, 2014
2 parents 4692be2 + c580735 commit 598d850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -55,7 +55,7 @@ public boolean rolesHaveModeShapePermission(final String absPath,
LOGGER.debug("Denying writer role permission to perform an action on an ACL node.");
return false;
} else {
LOGGER.debug("Granting writer role permission to perform any action on a non-ACL nodes.");
LOGGER.debug("Granting writer role permission to perform any action on a non-ACL node.");
return true;
}
}
Expand Down
Expand Up @@ -28,10 +28,12 @@
import static org.modeshape.jcr.api.JcrConstants.JCR_CONTENT;
import static org.slf4j.LoggerFactory.getLogger;

import java.security.AccessControlException;
import java.util.Iterator;

import javax.jcr.AccessDeniedException;
import javax.jcr.Property;
import javax.jcr.RepositoryException;

import org.fcrepo.kernel.rdf.GraphSubjects;
import org.fcrepo.kernel.rdf.impl.mappings.PropertyToTriple;
import org.fcrepo.kernel.rdf.impl.mappings.ZippingIterator;
Expand Down Expand Up @@ -91,7 +93,7 @@ private void putPropertiesIntoContext() throws RepositoryException {
if (node().hasNode(JCR_CONTENT)) {
contentNode = node().getNode(JCR_CONTENT);
}
} catch (final AccessControlException e) {
} catch (final AccessDeniedException e) {
LOGGER.trace("Access denied to content node", e);
}
if (contentNode != null) {
Expand Down

0 comments on commit 598d850

Please sign in to comment.