[Cyberduck-trac] [Cyberduck] #11196: Failure to read attributes on S3 downloads (400 Bad Request on HEAD /DIR/file)

Cyberduck trac at cyberduck.io
Thu Oct 8 03:44:46 UTC 2020


#11196: Failure to read attributes on S3 downloads (400 Bad Request on HEAD
/DIR/file)
-------------------------+-------------------------
    Reporter:  paolieri  |      Owner:
        Type:  defect    |     Status:  new
    Priority:  high      |  Milestone:
   Component:  core      |    Version:  7.6.2
    Severity:  critical  |   Keywords:
Architecture:  Intel     |   Platform:  macOS 10.15
-------------------------+-------------------------
 Using version 7.6.2 (33520), I am unable to download files from S3 buckets
 (it worked with previous versions).

 I can list the contents of a bucket, but when I try [Action] ->
 [Download], I get the message:

 {{{
 Failure to read attributes of FILENAME.xml
 Bad Request. Request Error. Please contact your web hosting service
 provider for assistance.
 }}}

 The log shows:

 {{{
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Server: AmazonS3
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] HEAD
 /DIR/FILENAME.xml HTTP/1.1
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Date: Thu, 08
 Oct 2020 03:25:13 GMT
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] x-amz-content-
 sha256: ...
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Host: my-
 bucket.s3.amazonaws.com
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] x-amz-date:
 20201008T032513Z
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Authorization:
 ********
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Connection:
 Keep-Alive
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] User-Agent:
 Cyberduck/7.6.2.33520 (Mac OS X/10.15.7) (x86_64)
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] HTTP/1.1 400 Bad
 Request
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] x-amz-request-
 id: ...
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] x-amz-id-2: ...
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Content-Type:
 application/xml
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Transfer-
 Encoding: chunked
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Date: Thu, 08
 Oct 2020 03:25:13 GMT
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Connection:
 close
 Cyberduck: (libcore.dylib) [ch.sudo.cyberduck:transcript] Server: AmazonS3
 }}}

 For the S3 bucket, I used a standard access policy:

 {{{
 {
     "Version": "2012-10-17",
     "Statement": [
         {
             "Sid": "VisualEditor0",
             "Effect": "Allow",
             "Action": [
                 "s3:GetObject",
                 "s3:ListBucket"
             ],
             "Resource": [
                 "arn:aws:s3:::my-bucket",
                 "arn:aws:s3:::my-bucket/*"
             ]
         }
     ]
 }
 }}}

--
Ticket URL: <https://trac.cyberduck.io/ticket/11196>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows


More information about the Cyberduck-trac mailing list