Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: Make List return the path itself #4877

Closed
Tracked by #2611
Xuanwo opened this issue Jul 10, 2024 · 5 comments · Fixed by #4959
Closed
Tracked by #2611

idea: Make List return the path itself #4877

Xuanwo opened this issue Jul 10, 2024 · 5 comments · Fixed by #4959

Comments

@Xuanwo
Copy link
Member

Xuanwo commented Jul 10, 2024

In RFC 3243: List Prefix, we make it clear that list won't return itself.

However, this behavior does not align with either local file systems or AWS S3 services, which can confuse users. Furthermore, this behavior makes it impossible to list versions of a path expected to be supported at #2611.

So I propose to change the current behavior to always return path itself if exists.

@meteorgan
Copy link
Contributor

I'd like to work on this issue and other tasks about Object Versioning from tomorrow

@Xuanwo
Copy link
Member Author

Xuanwo commented Jul 22, 2024

This issue is complex; we need to review the behavior of all services and ensure they are aligned. We can start by changing the behavior test.

@meteorgan
Copy link
Contributor

similar issue: #4069

@meteorgan
Copy link
Contributor

is this a mistake ? list file returns itself
image

@Xuanwo
Copy link
Member Author

Xuanwo commented Jul 25, 2024

It appears that our implementation does not align well with the RFC. We want list to the the path itself no matter it's file or dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants