Skip to content

"Invalid group: uri" while setting :authenticated_read #39

mislav opened this Issue Oct 14, 2011 · 0 comments

1 participant

mislav commented Oct 14, 2011

My object was private and I wanted to grant the READ permission to authenticated users:

policy = S3Object.acl(name, bucket)
policy.grants << ACL::Grant.grant(:authenticated_read)
# persist it:
S3Object.acl(name, bucket, policy)  # BOOM! doesn't work

The exception is from the server: "Invalid group uri". This is what it was trying to send (for the offending grant):

<Grantee xsi:type="Group" xmlns:xsi="">

I think it Amazon choked because it wanted this URI instead:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.