Skip to content

Symlinked dir is readable when hide_symlinks is true #37

@ahti

Description

@ahti

While working on adding webdav to miniserve I noticed that while hide_symlinks does prevent symlinks from being listed in PROPFIND responses, I can still get a list of the contents of a symlinked directory, by requesting its path directly.

Given this folder structure:

dirA/
    test
dirB -> dirA/

Running curl -vX PROPFIND localhost:8080 -H "Depth: 1" does not contain an entry for dirB, as expected.

However, running curl -vX PROPFIND localhost:8080/dirB -H "Depth: 1" shows the directory contents for dirA (or whatever else the link may point to).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions