jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Krapf (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3230) hasCapability() does not respect permissions
Date Tue, 07 Feb 2012 12:10:59 GMT
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

        

Mime
View raw message