Skip to content

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

@pythonicode

Description

@pythonicode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething that should be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions