From koch at id-team.com Mon Oct 19 14:54:26 2009 From: koch at id-team.com (Christoph Koch) Date: Mon, 19 Oct 2009 20:54:26 +0200 Subject: [s3-dev] Create a Bucket in Location EU Message-ID: Hi :) I am trying to create a bucket in location EU with AWS::S3:Bucket.create("some_name", options) How do I have to set the options hash? Amazon api says the put request must have the following xml: EU Brgds Chris From marcel at vernix.org Mon Oct 19 16:17:39 2009 From: marcel at vernix.org (Marcel Molina Jr.) Date: Mon, 19 Oct 2009 13:17:39 -0700 Subject: [s3-dev] Create a Bucket in Location EU In-Reply-To: References: Message-ID: <6E465534-D36E-41C5-B85E-195B55187A32@vernix.org> There are forks on github that support eu buckets. On Oct 19, 2009, at 11:54 AM, Christoph Koch wrote: > Hi :) > > I am trying to create a bucket in location EU with > AWS::S3:Bucket.create("some_name", options) > > How do I have to set the options hash? > > Amazon api says the put request must have the following xml: > EU LocationConstraint> > Brgds > Chris > _______________________________________________ > amazon-s3-dev mailing list > amazon-s3-dev at rubyforge.org > http://rubyforge.org/mailman/listinfo/amazon-s3-dev From koch at id-team.com Mon Oct 19 17:00:40 2009 From: koch at id-team.com (Christoph Koch) Date: Mon, 19 Oct 2009 23:00:40 +0200 Subject: [s3-dev] Create a Bucket in Location EU In-Reply-To: <6E465534-D36E-41C5-B85E-195B55187A32@vernix.org> References: <6E465534-D36E-41C5-B85E-195B55187A32@vernix.org> Message-ID: <734F24C2-5E6D-4AF2-830B-75A952AEED1F@id-team.com> Hi Mike Thanks for your message. I have seen them. However thats the problem with rails/gems.... forks meansstop using the standard gem. I dont want to use a fork. Do you have any other ideas? Maybe override a method? Chris :) Am 19.10.2009 um 22:17 schrieb Marcel Molina Jr.: > There are forks on github that support eu buckets. > > On Oct 19, 2009, at 11:54 AM, Christoph Koch wrote: > >> Hi :) >> >> I am trying to create a bucket in location EU with >> AWS::S3:Bucket.create("some_name", options) >> >> How do I have to set the options hash? >> >> Amazon api says the put request must have the following xml: >> EU> LocationConstraint> >> Brgds >> Chris >> _______________________________________________ >> amazon-s3-dev mailing list >> amazon-s3-dev at rubyforge.org >> http://rubyforge.org/mailman/listinfo/amazon-s3-dev > _______________________________________________ > amazon-s3-dev mailing list > amazon-s3-dev at rubyforge.org > http://rubyforge.org/mailman/listinfo/amazon-s3-dev Dipl. Wirt. -Inf. Christoph Koch Id Team - Intelligent Asset Management and Image retrieval MAFINEX-Technologiezentrum Julius-Hatry-Stra?e 1, A1.2.2 68163 Mannheim fon: +49 (0)621-483458 90 email: koch at id-team.com web: http://www.id-team.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From max at bumnetworks.com Mon Oct 19 18:07:45 2009 From: max at bumnetworks.com (Max Afonov) Date: Mon, 19 Oct 2009 22:07:45 +0000 Subject: [s3-dev] Create a Bucket in Location EU In-Reply-To: <734F24C2-5E6D-4AF2-830B-75A952AEED1F@id-team.com> References: <6E465534-D36E-41C5-B85E-195B55187A32@vernix.org><734F24C2-5E6D-4AF2-830B-75A952AEED1F@id-team.com> Message-ID: <1782705085-1255990105-cardhu_decombobulator_blackberry.rim.net-1259784239-@bda316.bisx.prod.on.blackberry> Perhaps some attempt could be made to merge the forks back into the original? This would especially make sense if the forks were otherwise valuable. -----Original Message----- From: Christoph Koch Date: Mon, 19 Oct 2009 23:00:40 To: Marcel Molina Jr.; Subject: Re: [s3-dev] Create a Bucket in Location EU _______________________________________________ amazon-s3-dev mailing list amazon-s3-dev at rubyforge.org http://rubyforge.org/mailman/listinfo/amazon-s3-dev From koch at id-team.com Tue Oct 20 04:03:45 2009 From: koch at id-team.com (Christoph Koch) Date: Tue, 20 Oct 2009 10:03:45 +0200 Subject: [s3-dev] Create a Bucket in Location EU In-Reply-To: <1782705085-1255990105-cardhu_decombobulator_blackberry.rim.net-1259784239-@bda316.bisx.prod.on.blackberry> References: <6E465534-D36E-41C5-B85E-195B55187A32@vernix.org><734F24C2-5E6D-4AF2-830B-75A952AEED1F@id-team.com> <1782705085-1255990105-cardhu_decombobulator_blackberry.rim.net-1259784239-@bda316.bisx.prod.on.blackberry> Message-ID: <6D53E3BA-753E-407F-A088-7C90E7D44926@id-team.com> This fork will fix the issue. http://www.google.com/codesearch/p?hl=en&sa=N&cd=5&ct=rc#yuGkxDsMwas/ lib/aws/s3/bucket.rb&q=lang:ruby%20LocationConstraint I would be very happy if someone who is feeling responsible to just copy past ... line 81 .... 104 minor adjustments to the standard lib /aws/s3/bucket.rb: def create(name, options = {}) validate_name!(name) put("/#{name}", options, BucketConfiguration.new(options[:location]).to_s).success? end class BucketConfiguration < XmlGenerator attr_reader :location def initialize(location) @location = location super() end def build return nil unless location == :eu xml.tag!('CreateBucketConfiguration') do xml.LocationConstraint 'EU' end end end Thanks Chris Am 20.10.2009 um 00:07 schrieb Max Afonov: > Perhaps some attempt could be made to merge the forks back into the > original? This would especially make sense if the forks were > otherwise valuable. > > -----Original Message----- > From: Christoph Koch > Date: Mon, 19 Oct 2009 23:00:40 > To: Marcel Molina Jr.; dev at rubyforge.org> > Subject: Re: [s3-dev] Create a Bucket in Location EU > > _______________________________________________ > amazon-s3-dev mailing list > amazon-s3-dev at rubyforge.org > http://rubyforge.org/mailman/listinfo/amazon-s3-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: