I recently upgraded a project in development from radiant 0.9.1 to 1.0.0 
and wanted to try out the radiant clipped extension to manage assets.  I 
followed the instruction in the extension's github 
page https://github.com/radiant/radiant-clipped-extension.  My site comes 
up, but when I attempt to upload an asset I get the below authentication 
error.  I am at a lost how to troubleshoot what is going on here.  Does 
anyone have any experience with this and what I could do to fix it?

Thanks,
Jason

Excon::Errors::Forbidden in Admin/assetsController#create

Expected(200) <=> Actual(403 Forbidden)
  request => 
{:body=>#<File:/var/folders/-k/-kHlAirEHaWd-LPqwo6ceU+++TI/-Tmp-/stream20120308-7303-u83ylu-0.gif>,
 :ssl_verify_peer=>true, :connect_timeout=>60, :port=>"443", :expects=>200, 
:write_timeout=>60, :instrumentor_name=>"excon", 
:path=>"/%2FUsers%2Fjsmorris%2Fprojects%2Fresitrac%2Fpublic%2Fsystem%2Fassets%2F1%2Foriginal%2FGatorHead.gif",
 :host=>"com", :mock=>false, :query=>nil, :method=>"PUT", :read_timeout=>60, 
:headers=>{"Authorization"=>"AWS xxxxxxxxxxxx:xxxxxxxxxxxxxxxxx", 
"x-amz-acl"=>"public-read", "Date"=>"Fri, 09 Mar 2012 05:28:58 +0000", 
"Content-Type"=>"image/gif", "Content-Length"=>1780, "Host"=>"com:443"}, 
:retry_limit=>4, :idempotent=>true, :scheme=>"https"}
  response => #<Excon::Response:0x1074706f0 
@headers={"x-amz-id-2"=>"U2YEilrayC4DXSgyeRY6/93kVqcS7TARsnEjb2XQ5OT1C3KKB3xZPSNubgoQH3UG",
 "Transfer-Encoding"=>"chunked", "Date"=>"Fri, 09 Mar 2012 05:28:57 GMT", 
"Content-Type"=>"application/xml", "x-amz-request-id"=>"891AA234FA919418", 
"Server"=>"AmazonS3", "Connection"=>"close"}, @body="<?xml version=\"1.0\" 
encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The 
request signature we calculated does not match the signature you provided. 
Check your key and signing method.</Message><StringToSignBytes>50 55 54 0a 0a 
69 6d 61 67 65 2f 67 69 66 0a 46 72 69 2c 20 30 39 20 4d 61 72 20 32 30 31 32 
20 30 35 3a 32 38 3a 35 38 20 2b 30 30 30 30 0a 78 2d 61 6d 7a 2d 61 63 6c 3a 
70 75 62 6c 69 63 2d 72 65 61 64 0a 2f 63 6f 6d 2f 25 32 46 55 73 65 72 73 25 
32 46 6a 73 6d 6f 72 72 69 73 25 32 46 70 72 6f 6a 65 63 74 73 25 32 46 72 65 
73 69 74 72 61 63 25 32 46 70 75 62 6c 69 63 25 32 46 73 79 73 74 65 6d 25 32 
46 61 73 73 65 74 73 25 32 46 31 25 32 46 6f 72 69 67 69 6e 61 6c 25 32 46 47 
61 74 6f 72 48 65 61 64 2e 67 69 
66</StringToSignBytes><RequestId>891AA234FA919418</RequestId><HostId>U2YEilrayC4DXSgyeRY6/93kVqcS7TARsnEjb2XQ5OT1C3KKB3xZPSNubgoQH3UG</HostId><SignatureProvided>yB3fQKBjpt+vfDWHCSvdAmIbGmc=</SignatureProvided><StringToSign>PUT\n\nimage/gif\nFri,
 09 Mar 2012 05:28:58 
+0000\nx-amz-acl:public-read\n/com/%2FUsers%2Fjsmorris%2Fprojects%2Fresitrac%2Fpublic%2Fsystem%2Fassets%2F1%2Foriginal%2FGatorHead.gif</StringToSign><AWSAccessKeyId>1EVJJH3NN32Z416D20G2</AWSAccessKeyId></Error>",
 @status=403>

RAILS_ROOT: /Users/jsmorris/projects/resitrac
Application Trace <http://localhost:3000/admin/assets#> | Framework 
Trace<http://localhost:3000/admin/assets#>
 | Full Trace <http://localhost:3000/admin/assets#>

/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/excon-0.9.6/lib/excon/connection.rb:229:in
 `request_kernel'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/excon-0.9.6/lib/excon/connection.rb:86:in
 `request'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/fog-1.1.2/lib/fog/core/connection.rb:20:in
 `request'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/fog-1.1.2/lib/fog/aws/storage.rb:381:in
 `request'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/fog-1.1.2/lib/fog/aws/requests/storage/put_object.rb:43:in
 `put_object'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/fog-1.1.2/lib/fog/aws/models/storage/file.rb:119:in
 `save'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/fog-1.1.2/lib/fog/core/collection.rb:50:in
 `create'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip/storage/fog.rb:70:in
 `flush_writes'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip/storage/fog.rb:66:in
 `each'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip/storage/fog.rb:66:in
 `flush_writes'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip/attachment.rb:162:in
 `save'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip.rb:398:in
 `send'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip.rb:398:in
 `save_attached_files'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip.rb:391:in
 `each_attachment'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip.rb:390:in
 `each'
/Users/jsmorris/.rvm/gems/ree-1.8.7-2011.03@resitrac/gems/paperclip-2.3.16/lib/paperclip.rb:390:in
 `each_attachment'

...

Reply via email to