mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2409] [MERGED] Fixed a bug that mounting with ksmid specified to fail #2524
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#2524
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?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2409
Author: @ggtakec
Created: 2/12/2024
Status: ✅ Merged
Merged: 2/18/2024
Merged by: @gaul
Base:
master← Head:fix_kmsid📝 Commits (1)
9092542Fixed a bug that mounting with ksmid specified to fail📊 Changes
3 files changed (+47 additions, -13 deletions)
View changed files
📝
src/curl.cpp(+2 -2)📝
src/curl.h(+1 -1)📝
src/s3fs.cpp(+44 -10)📄 Description
Relevant Issue (if applicable)
#2401
Details
If the bucket(or directory under the bucket) user attempt to mount is not created as SSE, a GET request(with the
x-amz-server-side-encryptionheader) to check the mount point will return an error(InvalidArgument:x-amz-server-side-encryptionheader is not supported for this operation).Thus, if the bucket did not have SSE settings(get error response), I changed that s3fs retried to send the GET request without
x-amz-server-side-encryptionheader to check the mount point.@gaul
If there are multiple causes for an error when making a GET request to check a mount point, the error details will be returned in order on each attempt, so the trial processing has been changed to a loop and refactored.
(I have added this recovering code, but the basic logic has not changed.)
This is a PR that fixes a bug reported by @aczire.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.