Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2987)

Issue 6344050: s3: add LocationConstraint in PutBucket (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by dave
Modified:
11 years, 10 months ago
Reviewers:
mp+112478
Visibility:
Public.

Description

s3: add LocationConstraint in PutBucket The default value of and empty body is only valid for us-east-1, the so called classic ec2 region. Non US regions required a location constraint. https://code.launchpad.net/~dave-cheney/goamz/s3-location-constraint/+merge/112478 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : s3: add LocationConstraint in PutBucket #

Patch Set 3 : s3: add LocationConstraint in PutBucket #

Total comments: 4

Patch Set 4 : s3: add LocationConstraint in PutBucket #

Patch Set 5 : s3: add LocationConstraint in PutBucket #

Patch Set 6 : s3: add LocationConstraint in PutBucket #

Total comments: 7

Patch Set 7 : s3: add LocationConstraint in PutBucket #

Patch Set 8 : s3: add LocationConstraint in PutBucket #

Patch Set 9 : s3: add LocationConstraint in PutBucket #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -28 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M aws/aws.go View 1 2 3 4 5 6 7 8 6 chunks +13 lines, -7 lines 0 comments Download
M s3/s3.go View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download
M s3/s3_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M s3/s3i_test.go View 1 2 3 4 5 6 6 chunks +20 lines, -18 lines 0 comments Download
M s3/s3t_test.go View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M s3/s3test/server.go View 1 2 3 4 2 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 7
dave_cheney.net
Please take a look.
11 years, 10 months ago (2012-07-03 08:28:33 UTC) #1
niemeyer
Looks good, but the testing side needs some tweaks. https://codereview.appspot.com/6344050/diff/4001/s3/s3_test.go File s3/s3_test.go (right): https://codereview.appspot.com/6344050/diff/4001/s3/s3_test.go#newcode23 s3/s3_test.go:23: ...
11 years, 10 months ago (2012-07-03 10:56:36 UTC) #2
dave_cheney.net
Please take a look. https://codereview.appspot.com/6344050/diff/4001/s3/s3_test.go File s3/s3_test.go (right): https://codereview.appspot.com/6344050/diff/4001/s3/s3_test.go#newcode23 s3/s3_test.go:23: s.s3 = s3.New(auth, aws.Region{Name: aws.USEast.Name, ...
11 years, 10 months ago (2012-07-05 06:15:54 UTC) #3
dave_cheney.net
Please take a look.
11 years, 10 months ago (2012-07-05 06:20:30 UTC) #4
niemeyer
Thanks. LGTM with the following detail sorted. Please feel free to submit it directly, unless ...
11 years, 10 months ago (2012-07-05 21:14:14 UTC) #5
dave_cheney.net
Please take a look. https://codereview.appspot.com/6344050/diff/2002/s3/s3.go File s3/s3.go (right): https://codereview.appspot.com/6344050/diff/2002/s3/s3.go#newcode74 s3/s3.go:74: if s3.Region.Name != aws.USEast.Name { ...
11 years, 10 months ago (2012-07-05 23:46:56 UTC) #6
dave_cheney.net
11 years, 10 months ago (2012-07-06 03:25:09 UTC) #7
*** Submitted:

s3: add LocationConstraint in PutBucket

The default value of and empty body is only valid for us-east-1, the 
so called classic ec2 region. Non US regions required a location 
constraint.

R=niemeyer
CC=
https://codereview.appspot.com/6344050

https://codereview.appspot.com/6344050/diff/2002/s3/s3.go
File s3/s3.go (right):

https://codereview.appspot.com/6344050/diff/2002/s3/s3.go#newcode74
s3/s3.go:74: if s3.Region.Name != aws.USEast.Name {
Done. I've implemented your suggestion.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b