jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-3212) Extend error message in case someone is trying to create a user/group outside the allowed folders
Date Tue, 11 Aug 2015 11:51:45 GMT
Konrad Windszus created OAK-3212:
------------------------------------

             Summary: Extend error message in case someone is trying to create a user/group
outside the allowed folders
                 Key: OAK-3212
                 URL: https://issues.apache.org/jira/browse/OAK-3212
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
    Affects Versions: 1.3.3
            Reporter: Konrad Windszus


Currently if someone tries to create a user/group outside the allowed path an error message
like 
{code}
javax.jcr.nodetype.ConstraintViolationException: Attempt to create authorizable outside of
configured tree
	at org.apache.jackrabbit.oak.security.user.UserProvider.getFolderPath(UserProvider.java:331)
	at org.apache.jackrabbit.oak.security.user.UserProvider.createFolderNodes(UserProvider.java:294)
	at org.apache.jackrabbit.oak.security.user.UserProvider.createAuthorizableNode(UserProvider.java:257)
	at org.apache.jackrabbit.oak.security.user.UserProvider.createGroup(UserProvider.java:190)
	at org.apache.jackrabbit.oak.security.user.UserManagerImpl.createGroup(UserManagerImpl.java:210)
	at org.apache.jackrabbit.oak.security.user.UserManagerImpl.createGroup(UserManagerImpl.java:199)
	at org.apache.jackrabbit.oak.jcr.delegate.UserManagerDelegator$12.perform(UserManagerDelegator.java:214)
	at org.apache.jackrabbit.oak.jcr.delegate.UserManagerDelegator$12.perform(UserManagerDelegator.java:211)
	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:216)
	at org.apache.jackrabbit.oak.jcr.delegate.UserManagerDelegator.createGroup(UserManagerDelegator.java:210)
{code}
is logged.
It would be good to include in the error which path is allowed and which path is actually
used (for quicker debugging).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message