From bmatzelle at hovitate.com Sun Mar 4 12:43:27 2007 From: bmatzelle at hovitate.com (Brent Matzelle) Date: Sun, 4 Mar 2007 12:43:27 -0500 Subject: [s3-dev] Pre-prepared ACL Grants Error In-Reply-To: <23dc6e0f0702230900l1d193b3dr4deed03dd17989e4@mail.gmail.com> References: <23dc6e0f0702191701q74e1be71if65eb078fe4c66@mail.gmail.com> <20070220041912.GJ79520@comox.textdrive.com> <23dc6e0f0702201454r18a7b516tc82169ca39ca0f6f@mail.gmail.com> <23dc6e0f0702230900l1d193b3dr4deed03dd17989e4@mail.gmail.com> Message-ID: <23dc6e0f0703040943h45e61dc7g754f681c31349fc8@mail.gmail.com> Hello, I'm just pinging this list again about this grant issue. Is there anything I can do to help figure this out? Brent. On 2/23/07, Brent Matzelle wrote: > > On 2/20/07, Brent Matzelle wrote: > > > > On 2/19/07, Marcel Molina Jr. wrote: > > > > > > On Mon, Feb 19, 2007 at 08:01:22PM -0500, Brent Matzelle wrote: > > > > I cannot set objects to any of the "pre-prepared" grant types > > > except > > > > for :public_read. Here is a simplified version of the code that > > > I've > > > > been using: > > > > ------ > > > > def acl_key_set(key, policy, public) > > > > access = (public) ? :public_read : :authenticated_read > > > > > > > > policy.grants.clear > > > > policy.grants << ACL::Grant.grant(access) > > > > S3Object.acl(key, @bucket, policy) > > > > end > > > > key = "test.txt " > > > > policy = S3Object.acl(key, @bucket) > > > > acl_key_set(key, policy, false) > > > > ------ > > > > This returns an error with the following stack trace: > > > > > > Confirmed. Though I don't know why. > > > > > > When I recreate your code and dump the policy xml with policy.to_xml, > > > it > > > looks just as it should be. Unfortunately S3 doesn't provide an error > > > message > > > along with its 500 response, leading me to think the process that > > > handled the > > > request is probably raising an exception for some reason. > > > > > > marcel > > > -- > > > Marcel Molina Jr. < marcel at vernix.org> > > > > > > > Thanks very much for responding to my email Marcel. So what might I try > > next? Is there any other method to remove read access to an S3 object that > > I could try? > > > > I previously used the S3.rb provided by Amazon and set the 'x-amz-acl' > > property to 'public-read' and 'private'. Would this work? BTW, I tried > > this already with AWS::S3 and received an error that 'private' was not > > allowed and verified that it isn't currently supported: > > > > http://amazon.rubyforge.org/doc/classes/AWS/S3/ACL/Grant.html#M000030 > > > > Why is this? > > > > Brent. > > > > > Any thoughts? I'm really stuck here. Thanks. > > Brent. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/amazon-s3-dev/attachments/20070304/8f4085c0/attachment-0001.html From magic_hat60622 at yahoo.com Thu Mar 8 21:29:44 2007 From: magic_hat60622 at yahoo.com (magic hat) Date: Thu, 8 Mar 2007 18:29:44 -0800 (PST) Subject: [s3-dev] s3 gem not recognizing S3 object Message-ID: <558678.39307.qm@web60914.mail.yahoo.com> I've installed the aws-s3 gem, and it's working fine within the context of my rails app. But when I try to use it running a freestanding ruby script, I get errors: #!/usr/bin/env ruby require 'rubygems' require 'aws/s3' AWS::S3::Base.establish_connection!( :access_key_id => 'redacted', :secret_access_key => 'redacted' ) dir='video' Dir.foreach(dir) do |p| file="#{dir}/#{p}" S3Object.store(p, open(file), 'mybucket') end /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb:165:in `const_missing': uninitialized constant S3Object (NameError) Anyone know what's going wrong here? --------------------------------- Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/amazon-s3-dev/attachments/20070308/598c4f54/attachment.html From marcel at vernix.org Thu Mar 8 22:31:38 2007 From: marcel at vernix.org (Marcel Molina Jr.) Date: Fri, 9 Mar 2007 03:31:38 +0000 Subject: [s3-dev] s3 gem not recognizing S3 object In-Reply-To: <558678.39307.qm@web60914.mail.yahoo.com> References: <558678.39307.qm@web60914.mail.yahoo.com> Message-ID: <20070309033138.GA67219@comox.textdrive.com> On Thu, Mar 08, 2007 at 06:29:44PM -0800, magic hat wrote: > I've installed the aws-s3 gem, and it's working fine within the > context of my rails app. But when I try to use it running a > freestanding ruby script, I get errors: > #!/usr/bin/env ruby > require 'rubygems' > require 'aws/s3' > AWS::S3::Base.establish_connection!( > :access_key_id => 'redacted', > :secret_access_key => 'redacted' > ) > > dir='video' > Dir.foreach(dir) do |p| > file="#{dir}/#{p}" > S3Object.store(p, open(file), 'mybucket') > end > /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.r > b:165:in `const_missing': uninitialized constant S3Object (NameError) > Anyone know what's going wrong here? Hey, it's because the S3Object class from the library is nested within the AWS::S3 module. So you either have to include AWS::S3 or fully qualify S3Object to be AWS::S3::S3Object. marcel -- Marcel Molina Jr. From amonat at gmail.com Thu Mar 8 22:36:50 2007 From: amonat at gmail.com (Andrew Monat) Date: Thu, 8 Mar 2007 21:36:50 -0600 Subject: [s3-dev] s3 gem not recognizing S3 object In-Reply-To: <558678.39307.qm@web60914.mail.yahoo.com> References: <558678.39307.qm@web60914.mail.yahoo.com> Message-ID: <414fdcef0703081936j628d7bebq9932471d31c8c4e5@mail.gmail.com> I may be wrong, but I think you need to qualify S3Object, since it's in the AWS::S3 namespace. So, try AWS::S3::S3Object instead of just S3Object. -Andy From edeleflie at gmail.com Fri Mar 9 05:51:55 2007 From: edeleflie at gmail.com (e deleflie) Date: Fri, 9 Mar 2007 21:51:55 +1100 Subject: [s3-dev] uninitialized constant OpenSSL::SSL Message-ID: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> Hi all, warning: I'm a ruby newbie .... I've got a funny situation where I can create Buckets, but I cant put anything in them .... when I try to call 'store' my ruby app just spins and does nothing ....In debug mode (on arachno) I get the following error: ================ NameError ===================== c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb:165:in `const_missing' const_missing_not_from_s3_library(sym) ... ============================================= Exception: uninitialized constant OpenSSL::SSL my code is very simple: require 'tk' require 'aws/s3' require 'pp' AWS::S3::Base.establish_connection!( :access_key_id => '902383NOTHNGHERE90', :secret_access_key => '0982kjfyeo2jnothinghereeitherrty6' ) # AWS::S3::Bucket.create('blabliblo') file = 'booboo.txt' pp "The file I am trying to upload is " + File.expand_path(file) AWS::S3::S3Object.store('booboo.txt', open(file), 'blabliblo') pp AWS::S3::Service.buckets -------------------- I am using Ruby 1.8.4 ... with aws-s3 0.3.0 etienne From edeleflie at gmail.com Fri Mar 9 06:16:06 2007 From: edeleflie at gmail.com (e deleflie) Date: Fri, 9 Mar 2007 22:16:06 +1100 Subject: [s3-dev] uninitialized constant OpenSSL::SSL In-Reply-To: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> References: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> Message-ID: <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> I should probably give the full stack trace ...here it is .... ================ NameError ===================== c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb:165:in `const_missing' const_missing_not_from_s3_library(sym) c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:84:in `connect' @http.verify_mode = OpenSSL::SSL::VERIFY_NONE c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:23:in `initialize' connect c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:6:in `connect' new(options) c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:159:in `establish_connection!' connections[connection_name] = Connection.connect(options) C:\Documents and Settings\etienne.deleflie\Desktop\other\ruby\test.rb:5 AWS::S3::Base.establish_connection!( ============================================= Exception: uninitialized constant OpenSSL::SSL On 3/9/07, e deleflie wrote: > Hi all, > > warning: I'm a ruby newbie .... > > I've got a funny situation where I can create Buckets, but I cant put > anything in them .... when I try to call 'store' my ruby app just > spins and does nothing ....In debug mode (on arachno) I get the > following error: > > ================ NameError ===================== > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb:165:in > `const_missing' > const_missing_not_from_s3_library(sym) > > ... > ============================================= > Exception: uninitialized constant OpenSSL::SSL > > my code is very simple: > > require 'tk' > require 'aws/s3' > require 'pp' > > AWS::S3::Base.establish_connection!( > :access_key_id => '902383NOTHNGHERE90', > :secret_access_key => '0982kjfyeo2jnothinghereeitherrty6' > ) > > # AWS::S3::Bucket.create('blabliblo') > > file = 'booboo.txt' > pp "The file I am trying to upload is " + File.expand_path(file) > AWS::S3::S3Object.store('booboo.txt', open(file), 'blabliblo') > pp AWS::S3::Service.buckets > > -------------------- > I am using Ruby 1.8.4 ... with aws-s3 0.3.0 > > etienne > From edeleflie at gmail.com Fri Mar 9 06:46:17 2007 From: edeleflie at gmail.com (e deleflie) Date: Fri, 9 Mar 2007 22:46:17 +1100 Subject: [s3-dev] uninitialized constant OpenSSL::SSL In-Reply-To: <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> References: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> Message-ID: <9a471d320703090346v20e03d10lc1334814c7795e83@mail.gmail.com> excuse me whilst I have a conversatin with myself. hmmm .... I found a C file with: ossl_ssl_def_const(VERIFY_NONE); ... and then there are some notes in openssl.rb which suggest that the constants are sucked in from the C files. ... which makes me think that perhaps the arachno debugger is simply not pulling in those C constants ... and that perhaps this missing openssl constant has nothing to do with my issue .... (which I noticed others were having a coupe of months ago) Etienne On 3/9/07, e deleflie wrote: > I should probably give the full stack trace ...here it is .... > > ================ NameError ===================== > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb:165:in > `const_missing' > const_missing_not_from_s3_library(sym) > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:84:in > `connect' > @http.verify_mode = OpenSSL::SSL::VERIFY_NONE > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:23:in > `initialize' > connect > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:6:in > `connect' > new(options) > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb:159:in > `establish_connection!' > connections[connection_name] = Connection.connect(options) > C:\Documents and Settings\etienne.deleflie\Desktop\other\ruby\test.rb:5 > AWS::S3::Base.establish_connection!( > > ============================================= > Exception: uninitialized constant OpenSSL::SSL > > > On 3/9/07, e deleflie wrote: > > Hi all, > > > > warning: I'm a ruby newbie .... > > > > I've got a funny situation where I can create Buckets, but I cant put > > anything in them .... when I try to call 'store' my ruby app just > > spins and does nothing ....In debug mode (on arachno) I get the > > following error: > > > > ================ NameError ===================== > > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb:165:in > > `const_missing' > > const_missing_not_from_s3_library(sym) > > > > ... > > ============================================= > > Exception: uninitialized constant OpenSSL::SSL > > > > my code is very simple: > > > > require 'tk' > > require 'aws/s3' > > require 'pp' > > > > AWS::S3::Base.establish_connection!( > > :access_key_id => '902383NOTHNGHERE90', > > :secret_access_key => '0982kjfyeo2jnothinghereeitherrty6' > > ) > > > > # AWS::S3::Bucket.create('blabliblo') > > > > file = 'booboo.txt' > > pp "The file I am trying to upload is " + File.expand_path(file) > > AWS::S3::S3Object.store('booboo.txt', open(file), 'blabliblo') > > pp AWS::S3::Service.buckets > > > > -------------------- > > I am using Ruby 1.8.4 ... with aws-s3 0.3.0 > > > > etienne > > > From francesc.esplugas at gmail.com Fri Mar 9 06:47:37 2007 From: francesc.esplugas at gmail.com (Francesc Esplugas) Date: Fri, 9 Mar 2007 12:47:37 +0100 Subject: [s3-dev] uninitialized constant OpenSSL::SSL In-Reply-To: <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> References: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> Message-ID: <872602A2-FFE6-4B78-813F-F7FEC542717D@gmail.com> Try re-installing AWS:S3 with include-dependencies. `sudo gem i aws-s3 --include-dependencies` Cesc -- name. francesc.esplugas jabber. fesplugas at jabber.org email. francesc.esplugas at gmail.com voice. 34 678 681 603 On Mar 9, 2007, at 12:16 PM, e deleflie wrote: I should probably give the full stack trace ...here it is .... ================ NameError ===================== c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/extensions.rb: 165:in `const_missing' const_missing_not_from_s3_library(sym) c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb: 84:in `connect' @http.verify_mode = OpenSSL::SSL::VERIFY_NONE c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb: 23:in `initialize' connect c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb: 6:in `connect' new(options) c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/connection.rb: 159:in `establish_connection!' connections[connection_name] = Connection.connect (options) C:\Documents and Settings\etienne.deleflie\Desktop\other\ruby\test.rb:5 AWS::S3::Base.establish_connection!( ============================================= Exception: uninitialized constant OpenSSL::SSL On 3/9/07, e deleflie wrote: > Hi all, > > warning: I'm a ruby newbie .... > > I've got a funny situation where I can create Buckets, but I cant put > anything in them .... when I try to call 'store' my ruby app just > spins and does nothing ....In debug mode (on arachno) I get the > following error: > > ================ NameError ===================== > c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/ > extensions.rb:165:in > `const_missing' > const_missing_not_from_s3_library(sym) > > ... > ============================================= > Exception: uninitialized constant OpenSSL::SSL > > my code is very simple: > > require 'tk' > require 'aws/s3' > require 'pp' > > AWS::S3::Base.establish_connection!( > :access_key_id => '902383NOTHNGHERE90', > :secret_access_key => '0982kjfyeo2jnothinghereeitherrty6' > ) > > # AWS::S3::Bucket.create('blabliblo') > > file = 'booboo.txt' > pp "The file I am trying to upload is " + File.expand_path(file) > AWS::S3::S3Object.store('booboo.txt', open(file), 'blabliblo') > pp AWS::S3::Service.buckets > > -------------------- > I am using Ruby 1.8.4 ... with aws-s3 0.3.0 > > etienne > _______________________________________________ amazon-s3-dev mailing list amazon-s3-dev at rubyforge.org http://rubyforge.org/mailman/listinfo/amazon-s3-dev From edeleflie at gmail.com Fri Mar 9 18:10:28 2007 From: edeleflie at gmail.com (e deleflie) Date: Sat, 10 Mar 2007 10:10:28 +1100 Subject: [s3-dev] uninitialized constant OpenSSL::SSL In-Reply-To: <872602A2-FFE6-4B78-813F-F7FEC542717D@gmail.com> References: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> <872602A2-FFE6-4B78-813F-F7FEC542717D@gmail.com> Message-ID: <9a471d320703091510l305564c9o6ac0f1adaf816ca9@mail.gmail.com> > Try re-installing AWS:S3 with include-dependencies. > > `sudo gem i aws-s3 --include-dependencies` no go .. I get exactly the same behaviour .. however! .... I let the call to 'store' going ..... and did get an errr eventually:... seems to be an idle socket timeout. So this suggests that the connectin was made successfully, but nothing transferred... which is strange ... why was nothing transferred? :-================ AWS::S3::RequestTimeout ===================== c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/error.rb:38:in `raise' Kernel.raise exception.new(message, response) c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/base.rb:72:in `request' Error::Response.new(response.response).error.raise if response.error? c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/base.rb:84:in `put' def #{verb}(path, headers = {}, body = nil, &block) c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/object.rb:239:in `store' put(path, options, data) # Don't call .success? on response. We want to get the etag. C:\Documents and Settings\etienne.deleflie\Desktop\other\ruby\test.rb:16 AWS::S3::S3Object.store('booboo.txt', open(file), 'ambisonia_test') ============================================= Exception: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. etienne From edeleflie at gmail.com Fri Mar 9 21:08:28 2007 From: edeleflie at gmail.com (e deleflie) Date: Sat, 10 Mar 2007 13:08:28 +1100 Subject: [s3-dev] bug #8171 Message-ID: <9a471d320703091808k77233facmfa3806cb872e30e5@mail.gmail.com> Hi all, So my journey with aws-s3 ends at bug #8171. http://rubyforge.org/tracker/index.php?func=detail&aid=8171&group_id=2409&atid=9356 As a Ruby newbie, I'm wondering now if I should spend more resources digging around trying to solve the problem ... or whether I should cut my losses and move on to an other language/lib for interfacing with S3. That said there seems to be a lot of reports of short time-outs for S3 ... which makes me wonder what success I will have for my files which can be 1 gig in size ... Etienne From edeleflie at gmail.com Fri Mar 9 21:10:19 2007 From: edeleflie at gmail.com (e deleflie) Date: Sat, 10 Mar 2007 13:10:19 +1100 Subject: [s3-dev] bug #8171 Message-ID: <9a471d320703091810v37b66ab4g3f1a2a83f1014c4e@mail.gmail.com> Hi all, So my journey with aws-s3 ends at bug #8171. http://rubyforge.org/tracker/index.php?func=detail&aid=8171&group_id=2409&atid=9356 As a Ruby newbie, I'm wondering now if I should spend more resources digging around trying to solve the problem ... or whether I should cut my losses and move on to an other language/lib for interfacing with S3. Etienne From amonat at gmail.com Sat Mar 10 00:00:52 2007 From: amonat at gmail.com (Andrew Monat) Date: Fri, 9 Mar 2007 23:00:52 -0600 Subject: [s3-dev] uninitialized constant OpenSSL::SSL In-Reply-To: <9a471d320703091510l305564c9o6ac0f1adaf816ca9@mail.gmail.com> References: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> <872602A2-FFE6-4B78-813F-F7FEC542717D@gmail.com> <9a471d320703091510l305564c9o6ac0f1adaf816ca9@mail.gmail.com> Message-ID: <414fdcef0703092100k5e59153fwc3b685565bd05ab8@mail.gmail.com> Hello all, It seems clear that the fact that the S3 library can't store any files from Windows (Bug #8171) is a major problem (a number of people have reported it in recent weeks), and it would be great for someone to step up and fix it, or at least suggest a direction for someone else to pursue. Please, anyone? It has been a long time since this was reported, and there has been no action. Does this mean that the library has been abandoned, or that no one cares about supporting Windows, or something else? Thanks, Andrew From edeleflie at gmail.com Sat Mar 10 00:35:58 2007 From: edeleflie at gmail.com (e deleflie) Date: Sat, 10 Mar 2007 16:35:58 +1100 Subject: [s3-dev] uninitialized constant OpenSSL::SSL In-Reply-To: <414fdcef0703092100k5e59153fwc3b685565bd05ab8@mail.gmail.com> References: <9a471d320703090251h14f399b1uf4f4542cc127a6b4@mail.gmail.com> <9a471d320703090316u1a178acbx3537e4d311401768@mail.gmail.com> <872602A2-FFE6-4B78-813F-F7FEC542717D@gmail.com> <9a471d320703091510l305564c9o6ac0f1adaf816ca9@mail.gmail.com> <414fdcef0703092100k5e59153fwc3b685565bd05ab8@mail.gmail.com> Message-ID: <9a471d320703092135j45dbedd8kf6fc8ee70e6b557@mail.gmail.com> not only is it a problem .... but s3sync.rb (and s3cmd.rb) work flawlessly on windows... s3sync.rb is a command line only piece of code, but I saw some comments on their wiki that they are considering putting a ruby API in front of it ... I think the aws-s3 API is well designed, but the implementation is clearly not solid (or at least not cross-platform tested) ... the thing to do would be to hook this API into the s3sync code ... (... it would be advisable to state on the aws-s3 rubyforge page that this code does not work on windows (and probably save a few people a lot of time)) Etienne On 3/10/07, Andrew Monat wrote: > Hello all, > > It seems clear that the fact that the S3 library can't store any files > from Windows (Bug #8171) is a major problem (a number of people have > reported it in recent weeks), and it would be great for someone to > step up and fix it, or at least suggest a direction for someone else > to pursue. > > Please, anyone? It has been a long time since this was reported, and > there has been no action. > > Does this mean that the library has been abandoned, or that no one > cares about supporting Windows, or something else? > > Thanks, > Andrew > _______________________________________________ > amazon-s3-dev mailing list > amazon-s3-dev at rubyforge.org > http://rubyforge.org/mailman/listinfo/amazon-s3-dev > From bmatzelle at hovitate.com Tue Mar 20 10:07:53 2007 From: bmatzelle at hovitate.com (Brent Matzelle) Date: Tue, 20 Mar 2007 10:07:53 -0400 Subject: [s3-dev] Pre-prepared ACL Grants Error In-Reply-To: <23dc6e0f0703040943h45e61dc7g754f681c31349fc8@mail.gmail.com> References: <23dc6e0f0702191701q74e1be71if65eb078fe4c66@mail.gmail.com> <20070220041912.GJ79520@comox.textdrive.com> <23dc6e0f0702201454r18a7b516tc82169ca39ca0f6f@mail.gmail.com> <23dc6e0f0702230900l1d193b3dr4deed03dd17989e4@mail.gmail.com> <23dc6e0f0703040943h45e61dc7g754f681c31349fc8@mail.gmail.com> Message-ID: <23dc6e0f0703200707t37572a97oda28a623650c623a@mail.gmail.com> Marcel, Am I to assume that you are especially busy working on Highrise that you aren't actively developing AWS::S3? If that's the case then please say so and I'll hack the code myself to fix this. Thanks. Brent. On 3/4/07, Brent Matzelle wrote: > > Hello, > > I'm just pinging this list again about this grant issue. Is there > anything I can do to help figure this out? > > Brent. > > On 2/23/07, Brent Matzelle wrote: > > > > On 2/20/07, Brent Matzelle < bmatzelle at hovitate.com> wrote: > > > > > > On 2/19/07, Marcel Molina Jr. wrote: > > > > > > > > On Mon, Feb 19, 2007 at 08:01:22PM -0500, Brent Matzelle wrote: > > > > > I cannot set objects to any of the "pre-prepared" grant types > > > > except > > > > > for :public_read. Here is a simplified version of the code > > > > that I've > > > > > been using: > > > > > ------ > > > > > def acl_key_set(key, policy, public) > > > > > access = (public) ? :public_read : :authenticated_read > > > > > > > > > > policy.grants.clear > > > > > policy.grants << ACL::Grant.grant(access) > > > > > S3Object.acl(key, @bucket, policy) > > > > > end > > > > > key = "test.txt " > > > > > policy = S3Object.acl(key, @bucket) > > > > > acl_key_set(key, policy, false) > > > > > ------ > > > > > This returns an error with the following stack trace: > > > > > > > > Confirmed. Though I don't know why. > > > > > > > > When I recreate your code and dump the policy xml with policy.to_xml, > > > > it > > > > looks just as it should be. Unfortunately S3 doesn't provide an > > > > error message > > > > along with its 500 response, leading me to think the process that > > > > handled the > > > > request is probably raising an exception for some reason. > > > > > > > > marcel > > > > -- > > > > Marcel Molina Jr. < marcel at vernix.org> > > > > > > > > > > Thanks very much for responding to my email Marcel. So what might I > > > try next? Is there any other method to remove read access to an S3 object > > > that I could try? > > > > > > I previously used the S3.rb provided by Amazon and set the 'x-amz-acl' > > > property to 'public-read' and 'private'. Would this work? BTW, I tried > > > this already with AWS::S3 and received an error that 'private' was not > > > allowed and verified that it isn't currently supported: > > > > > > http://amazon.rubyforge.org/doc/classes/AWS/S3/ACL/Grant.html#M000030 > > > > > > > > > Why is this? > > > > > > Brent. > > > > > > > > Any thoughts? I'm really stuck here. Thanks. > > > > Brent. > > > -- Brent Matzelle CEO Hovitate LLC Tel: 610-416-2312 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/amazon-s3-dev/attachments/20070320/1e757540/attachment.html