Skip to content

[bug] "Error loading tree preview" when viewing a directory with ... #531

Closed

Description

Activity

  1. Kushal-Nandha commented on Dec 30, 2025

    @Kushal-Nandha

    Hey @brendan-kellam , I was able to replicate this issue on my end as well.
    I found that when we fetch the folder contents , we filter the path to not allow directory traversal (which completely makes sense). This gives an Error loading tree preview for any path that contains two consecutive periods.

    As a workaround, I think we can break the path into segments (split by a '/') and check if any of them starts with two consecutive periods "..".
    What do you think?

  2. self-assigned this
    on Jan 15, 2026
  3. msukkari commented on Jan 15, 2026

    @msukkari
    Contributor

    cant repro anymore, closing

  4. added a commit that references this issue on Jan 15, 2026
    9021ba6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions