Re: serving files from riak-cs to public via url

2014-10-14 Thread Michael Grauer
Thank you Kota, by setting content type in the boto call I got the policy to work. ... prp_json = json.dumps(public_read_policy) bucket.set_policy(prp_json, headers={'Content-Type': 'application/json'}) ... Setting read-public acl on the buckets would not work for me because that only allows th

Re: serving files from riak-cs to public via url

2014-10-13 Thread Kota Uenishi
How about setting read-public acl to buckets instead of setting it each object? BTW that seems valid JSON, or did you correctly put 'application/json' as content-type when you put the policy? On Tue, Oct 14, 2014 at 5:19 AM, Michael Grauer wrote: > Thanks Ali. > > I now am having a permissions i

Re: serving files from riak-cs to public via url

2014-10-13 Thread Michael Grauer
Thanks Ali. I now am having a permissions issue it seems in accessing the objects. I try to curl the object http://10.x.x.x/test-bucket/pointclouds/4f55ed40ca08aeb57bf19257aa6601e85436ff0684aa2/static/metadata.ini and I get AccessDeniedAccess Denied/test-bucket/pointclouds/4f55ed40ca08aeb57bf1

Re: serving files from riak-cs to public via url

2014-10-13 Thread Ali Nikkhah
Hi Mike, You are trying to resolve a domain name 'test-bucket.10.x.x.x,' which is invalid. This is the part that is incorrect. There are a couple options: 0) You should be able to access the bucket by using http://ip/bucket-name, like: http://10.x.x.x/test-bucket/my_key_path 1) For easier publi

serving files from riak-cs to public via url

2014-10-13 Thread Michael Grauer
Hi, I'm very new to Riak-CS, and am investigating using it as a standin for S3. I'd like to have a url that allows an anonymous (unauthenticated) user to download an object from a bucket. Riak 2.0.0-1 Riak CS 1.5.0-1 Stanchion 1.5.0-1 Ubuntu 14.04 I have test-bucket set up, and can connect to i