[GH-ISSUE #1671] can not access file when s3 object path has "//" #868

Open
opened 2026-03-04 01:49:31 +03:00 by kerem · 2 comments
Owner

Originally created by @shuaiyy on GitHub (Jun 4, 2021).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1671

s3fs version: 1.89

mc ls jssz/my_bucket/exp2/
[2021-06-04 10:52:59 CST]     0B /
mc ls jssz/my_bucket/exp2//
[2021-06-04 10:53:05 CST]     0B BiaoBei-Male-DB-8/
[2021-06-04 10:53:05 CST]     0B CSMSC-1.1/
[2021-06-04 10:53:05 CST]     0B ZhaiJiuJiu/

cd ${mount_point}/my_bucket/
ls -al

total 3
drwxr-x--- 1 root root 0 Jan  1  1970 BiaoBei-Male-DB-8
drwxr-x--- 1 root root 0 Jan  1  1970 CSMSC-1.1
drwxr-x--- 1 root root 0 Jan  1  1970 ZhaiJiuJiu
?????????? ? ?    ?    ?            ? exp2
drwxr-x--- 1 root root 0 Jan  1  1970 exp3
drwxr-x--- 1 root root 0 Jan  1  1970 train
drwxr-x--- 1 root root 0 Jan  1  1970 valid

Originally created by @shuaiyy on GitHub (Jun 4, 2021). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1671 s3fs version: 1.89 ```shell mc ls jssz/my_bucket/exp2/ [2021-06-04 10:52:59 CST] 0B / mc ls jssz/my_bucket/exp2// [2021-06-04 10:53:05 CST] 0B BiaoBei-Male-DB-8/ [2021-06-04 10:53:05 CST] 0B CSMSC-1.1/ [2021-06-04 10:53:05 CST] 0B ZhaiJiuJiu/ cd ${mount_point}/my_bucket/ ls -al total 3 drwxr-x--- 1 root root 0 Jan 1 1970 BiaoBei-Male-DB-8 drwxr-x--- 1 root root 0 Jan 1 1970 CSMSC-1.1 drwxr-x--- 1 root root 0 Jan 1 1970 ZhaiJiuJiu ?????????? ? ? ? ? ? exp2 drwxr-x--- 1 root root 0 Jan 1 1970 exp3 drwxr-x--- 1 root root 0 Jan 1 1970 train drwxr-x--- 1 root root 0 Jan 1 1970 valid ```
Author
Owner

@gaul commented on GitHub (Jun 4, 2021):

This is a difficult situation -- POSIX doesn't have the concept of an empty file name.

<!-- gh-comment-id:854672599 --> @gaul commented on GitHub (Jun 4, 2021): This is a difficult situation -- POSIX doesn't have the concept of an empty file name.
Author
Owner

@gaul commented on GitHub (Sep 8, 2023):

At least we could add a test for this behavior. s3fs could emit a warning log message.

<!-- gh-comment-id:1710960568 --> @gaul commented on GitHub (Sep 8, 2023): At least we could add a test for this behavior. s3fs could emit a warning log message.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#868
No description provided.