[Cyberduck-trac] [Cyberduck] #11041: Cannot use AWS regions other than us-east-1 for S3
Cyberduck
trac at cyberduck.io
Sun May 3 06:42:52 UTC 2020
#11041: Cannot use AWS regions other than us-east-1 for S3
-----------------------+-------------------
Reporter: Shu99 | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: core | Version: 7.3.1
Severity: normal | Keywords:
Architecture: | Platform:
-----------------------+-------------------
I am unable to use s3.us-west-2.amazonaws.com as the server.
The error I get is:
"Listing directory / failed.
The specified bucket is not valid. Please contact your web hosting
provider for assistance.
I am able to connect fine to s3.amazonaws.com.
Looking at the tcpdump for an unencrypted session showed me that S3
endpoint is responding with the following error:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization
header is malformed; the region 'us-east-1' is wrong; expecting 'us-
west-2'</Message><Region>us-
west-2</Region><RequestId>0E88FE65A230B8D5</RequestId><HostId>5O27uP0oDq/v2S0r9Wi4TwnNRbinyIQBZ1361AKHzQBaSrWnK/9//flEI+ntI0WG0grGutfH0TQ=</HostId></Error>
0
The "Authorization" header contains the 'us-east-1' region even when 's3
.us-west-2.amazonaws.com' is used as the server.
Looks like a default value is being picked up in jets3t here:
https://github.com/mondain/jets3t/blob/master/jets3t/src/main/java/org/jets3t/service/impl/rest/httpclient/RestStorageService.java#L788-L790
Please investigate this issue.
Cyberduck Version = 7.3.1 (32784)
OS Version = macOS 10.15.3 (19D76)
--
Ticket URL: <https://trac.cyberduck.io/ticket/11041>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows
More information about the Cyberduck-trac
mailing list