Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Yehuda Sadeh
I opened issue #5261, and pushed a fix (on top of next) to wip-5261. This will need to be cherry-picked into cuttlefish. I also created a basic test in our functional s3 tests (which will probably need to be extended more). Thanks, Yehuda On Thu, Jun 6, 2013 at 9:49 AM, Mike Bryant wrote: > Yes,

Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Mike Bryant
Yes, that change lets me get and set cors policies as I would expect. Thanks, Mike On 6 June 2013 17:45, Yehuda Sadeh wrote: > Looking at it, it fails in a much basic level than I expected. My > guess off the cuff is that the 'cors' sub-resource needs to be part of > the canonicalized header, wh

Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Yehuda Sadeh
Looking at it, it fails in a much basic level than I expected. My guess off the cuff is that the 'cors' sub-resource needs to be part of the canonicalized header, whereas we probably assume that it doesn't (it doesn't appear on the Amazon list of sub-resources in the S3 auth docs). Just for the sak

Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Mike Bryant
I did, and I do. (Well, having just tried it again under debug mode) http://pastebin.com/sRHWR6Rh On 6 June 2013 16:15, Yehuda Sadeh wrote: > I guess you run set_cors() with a config object? Do you have the rgw > logs for that operation? > > > On Thu, Jun 6, 2013 at 8:02 AM, Mike Bryant wrote: >

Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Yehuda Sadeh
I guess you run set_cors() with a config object? Do you have the rgw logs for that operation? On Thu, Jun 6, 2013 at 8:02 AM, Mike Bryant wrote: > > No, I'm using the same user. > I have in fact tried it as close as possible to the actual creation, > to be sure I'm using the same credentials. >

Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Mike Bryant
No, I'm using the same user. I have in fact tried it as close as possible to the actual creation, to be sure I'm using the same credentials. i.e. using boto, bucket = boto.create_bucket(...), followed by, bucket.set_cors(). Mike On 6 June 2013 15:51, Yehuda Sadeh wrote: > Are you trying to set t

Re: [ceph-users] Having trouble using CORS in radosgw

2013-06-06 Thread Yehuda Sadeh
Are you trying to set the CORS header using a user other than the user who created the bucket? Yehuda On Wed, Jun 5, 2013 at 8:25 AM, Mike Bryant wrote: > Hi, > I'm having trouble setting a CORS policy on a bucket. > Using the boto python library, I can create a bucket and so on, but > when I tr

[ceph-users] Having trouble using CORS in radosgw

2013-06-05 Thread Mike Bryant
Hi, I'm having trouble setting a CORS policy on a bucket. Using the boto python library, I can create a bucket and so on, but when I try to get or set the CORS policy radosgw responds with a 403: AccessDenied Would anyone be able to help me with where I'm going wrong? (This is radosgw 0.61, so it