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

GET /collections/:coluuid directory search is not working as intended #930

Open
pythonicode opened this issue Feb 24, 2023 · 1 comment
Open
Labels
Bug Something that should be fixed.

Comments

@pythonicode
Copy link
Contributor

Describe the bug
After uploading multiple files to a collection with a path starting with / not all of them show up in the directory /.

To Reproduce
Upload two files with the paths /0c54b536be3573bc.p(1).woff2/0c54b536be3573bc.p(1).woff2 and /prep.txt/prep.txt.
Call GET /collection/:coluuid to see the two entries.
Call GET /collection/:coluuid?dir=/ and you will see only 1 entry.

Expected behavior
The root directory/ should have all files with path's starting with / and not be missing any.

Actual behavior
The root directory / is missing paths starting with /.

Additional context
Discussion on Slack: https://filecoinproject.slack.com/archives/C016APFREQK/p1677178196959089

@pythonicode pythonicode added the Bug Something that should be fixed. label Feb 24, 2023
@pythonicode
Copy link
Contributor Author

Should be addressed by #934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something that should be fixed.
Projects
None yet
Development

No branches or pull requests

1 participant