You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Lars Krapf (Created) (JIRA)" <ji...@apache.org> on 2012/02/07 13:10:59 UTC

[jira] [Created] (JCR-3230) hasCapability() does not respect permissions

hasCapability() does not respect permissions
--------------------------------------------

                 Key: JCR-3230
                 URL: https://issues.apache.org/jira/browse/JCR-3230
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 2.4
            Reporter: Lars Krapf


Session.hasCapability() is lacking a sound check for access control permissions, thus it can return true even if the respective call to hasPermission will return false.
This violates the specification:

[hasCapability] checks whether an operation can be performed given as much context as can be determined by the repository, including:

-  Permissions granted to the current user, including access control privileges.
- [...]

(from: http://www.day.com/specs/jcr/2.0/9_Permissions_and_Capabilities.html)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira