You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2013/12/03 14:06:35 UTC

[jira] [Created] (OAK-1256) Dead code in PrivilegeBitsProvider#getPrivilegeNames

Antonio Sanso created OAK-1256:
----------------------------------

             Summary: Dead code in PrivilegeBitsProvider#getPrivilegeNames
                 Key: OAK-1256
                 URL: https://issues.apache.org/jira/browse/OAK-1256
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Antonio Sanso
         Attachments: OAK-1256-patch.txt

There is some dead code in  PrivilegeBitsProvider#getPrivilegeNames due the lack of hashCode/equals in PrivileveBits$ModifiableData

More specifically

{code}
  Set<String> privilegeNames;
            if (bitsToNames.containsKey(privilegeBits)) {
                privilegeNames = bitsToNames.get(privilegeBits);
            } else {
{code}

will always be false. Patch to follow



--
This message was sent by Atlassian JIRA
(v6.1#6144)