mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1183] Cannot Create Directories with multiple periods and single digit in name #624
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#624
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 @lizardslair on GitHub (Oct 25, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1183
I have found that when making a directory, if the name of it has TWO periods, it and there is a digit followed by another period and either a digit or word chars... something fails and will not mark the object as a DIR. Furthermore, you cannot delete (
rm -rf) the "broken" folders once they are created.... it has to be done from AWS S3 web console. The pattern seems to be: "sometext anythingreally.SINGLEDIGIT.something". The folders do show as folders in AWS Web Console, and I can manually upload files into them... but from s3fs they look like normal files and can't do anything with them. Seems to be an issue with the meta-data not being set properly? Can anyone else reproduce this using the samemkdircommands as I did below?I discovered this because we recently updated our version of s3fs in September, and since then one of our departments that creates dated folders with periods such as "Sales Leads 7.1.19" are failing to be created. The pattern seems to be particular to single-digits in the middle section, such as in the example here:
sh-4.2# mkdir 'TOYOTA TRUCK 8.28.20'
sh-4.2# mkdir 'TOYOTA TRUCK 8.2.2'
mkdir: cannot create directory ‘TOYOTA TRUCK 8.2.2’: Input/output error
PS: This only affects making directories... regular files are OK
PPS: After poking around the src/ code a bit, I have a hunch this might be related to the
S3fsCurl::LookupMimeType()method, or the callee of it...See below for several examples and debug-output:
Amazon Simple Storage Service File System V1.85 (commit:81102a5) with OpenSSL