jakobmattsson/bucketful — pull request #2 by treygriffith (2014-05-02 02:12:21+00:00)
Title: De-duplicate Bucket ACL

I was running into a strange issue where Bucketful would continue pushing ReadAccess Grants into my bucket's ACL, and Amazon wasn't deduplicating. Eventually, it seems Amazon didn't like receiving an ACL with 50+ grants, and started throwing errors.

This PR fixes that problem by de-deuplicating the Grants list before updating the bucket ACL.