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 "angela (JIRA)" <ji...@apache.org> on 2013/12/04 08:56:46 UTC
[jira] [Resolved] (OAK-1256) Dead code in
PrivilegeBitsProvider#getPrivilegeNames
[ https://issues.apache.org/jira/browse/OAK-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
angela resolved OAK-1256.
-------------------------
Resolution: Fixed
Fix Version/s: 0.13
fixed by using the unmodifiable representation in the provider (instead of just using them at the end for adding the result to the map).
thanks for spotting though.
> Dead code in PrivilegeBitsProvider#getPrivilegeNames
> ----------------------------------------------------
>
> Key: OAK-1256
> URL: https://issues.apache.org/jira/browse/OAK-1256
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: Antonio Sanso
> Assignee: angela
> Fix For: 0.13
>
> 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)