veyepar icon indicating copy to clipboard operation
veyepar copied to clipboard

internet archive - 403 Forbidden - lack sufficient privilages

Open CarlFK opened this issue 12 years ago • 0 comments

Using the $accesskey:$secret from

http://archive.org/account/s3.php

curl -v
--location
--header 'x-archive-meta-collection:test_collection'
--header 'x-amz-auto-make-bucket:1'
--header 'x-archive-meta-mediatype:movies'
--header 'x-archive-meta-title:test'
--header "authorization: LOW $accesskey:$secret"
--upload-file ~/Videos/veyepar/test_client/test_show/mp4/Lets_make_a_Test.mp4
http://s3.us.archive.org/nextdayvideo.test/ndv-test-111339.mp4

  • curl -v --location --header x-archive-meta-collection:test_collection --header x-amz-auto-make-bucket:1 --header x-archive-meta-mediatype:movies --header x-archive-meta-title:test --header 'authorization: LOW FEWGReWX3QbNk0h3:XXnCIGIF06caO9KX' --upload-file /home/carl/Videos/veyepar/test_client/test_show/mp4/Lets_make_a_Test.mp4 http://s3.us.archive.org/nextdayvideo.test/ndv-test-111339.mp4
  • About to connect() to s3.us.archive.org port 80 (#0)
  • Trying 207.241.224.25... connected
  • Connected to s3.us.archive.org (207.241.224.25) port 80 (#0)

    PUT /nextdayvideo.test/ndv-test-111339.mp4 HTTP/1.1 User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 Host: s3.us.archive.org Accept: / x-archive-meta-collection:test_collection x-amz-auto-make-bucket:1 x-archive-meta-mediatype:movies x-archive-meta-title:test authorization: LOW FEWGReWX3QbNk0h3:XXnCIGIF06caO9KX Content-Length: 456258 Expect: 100-continue

  • Done waiting for 100-continue < HTTP/1.1 403 Forbidden < Date: Thu, 24 Oct 2013 17:34:18 GMT < Server: Apache/2.2.22 (Ubuntu) < Accept-Ranges: bytes < Access-Control-Allow-Origin: * < Access-Control-Allow-Methods: GET,POST,PUT,DELETE < Access-Control-Allow-Headers: authorization,x-amz-acl,x-amz-auto-make-bucket,cache-control,x-requested-with,x-file-name,x-file-size,x-archive-ignore-preexisting-bucket,x-archive-interactive-priority,x-archive-meta-title,x-archive-meta-description,x-archive-meta-language,x-archive-meta-mediatype,x-archive-meta01-subject,x-archive-meta02-subject,x-archive-meta03-subject,x-archive-meta04-subject,x-archive-meta05-subject,x-archive-meta01-collection,x-archive-meta02-collection < Content-Length: 244 < Connection: close < Content-Type: text/plain <
  • we are done reading and this is set to close, stop send
  • Closing connection #0 <Error><Code>AccessDenied</Code><Message>Access Denied</Message><Resource>You lack sufficient privilages to write to this item.</Resource><RequestId>a63b1b99-8cbb-42bc-b8a3-cb90b6f32732</RequestId></Error>

CarlFK avatar Nov 13 '13 23:11 CarlFK