Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
Done
Description
// When we are removing subset of rights from existing acl. for(OzoneAcl a: bucketInfo.getAcls()) { if(a.getName().equals(acl.getName()) && a.getType().equals(acl.getType())) { BitSet bits = (BitSet) acl.getAclBitSet().clone(); bits.and(a.getAclBitSet()); if (bits.equals(ZERO_BITSET)) { return false; } bits = (BitSet) acl.getAclBitSet().clone(); bits.and(a.getAclBitSet()); a.getAclBitSet().xor(bits); if(a.getAclBitSet().equals(ZERO_BITSET)) { bucketInfo.getAcls().remove(a); } break; } else { return false; }
In for loop, if first one is not matching with name and type, in else we return false. We should iterate entire acl list and then return response.
}
Attachments
Issue Links
- links to