mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #153] s3fs statically sets host header to s3.amazonaws.com in some cases #90
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rvdm on GitHub (Mar 19, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/153
Hi,
When using a non-Amazon hosted S3 bucket, s3fs adds a static host: header to its requests. This results in HTTP 400 errors from non-AWS S3 buckets, breaking s3fs on top of alternative S3 implementations.
From src/curl.cpp:
@gaul commented on GitHub (Mar 19, 2015):
Note that this is only done for V4 authentication.
@rvdm commented on GitHub (Mar 20, 2015):
Correct, but the client will try V4 first (unless it's disabled as a mount option). Anyway, hardcoding hostnames is never a good idea :)
I would love to write a patch, but my cpp is too rusty for it. More clients have this issue, and for folks hosting an S3 endpoint it's not a very crazy idea to just add the Amazon hostname(s) to the virtualhost configuration - but it's a better idea to just clean it up :)
@gaul commented on GitHub (Apr 11, 2015):
Fixed by #164.
@ggtakec commented on GitHub (Apr 11, 2015):
@andrewgaul @kahing
thank you.