Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/net/webdav: fails on broken links #16195
When trying to list a directory that contains a broken link I get a non informative error:
This is what I get from the webdav server:
The error comes from file.go  where it calls stat on the broken link file but I think that maybe it should be handled in webdav.go walkFn .
I am not sure myself what should be printed / returned but I would expect to get the full directory listing (ie webdav shouldn't crush on this in my opinion) with this link marked a broken somehow .
I just encounter this issue to. I fixed it locally by just returning nil when getting an error here https://github.com/golang/net/blob/master/webdav/webdav.go#L557.
I tested the same use case with Apache implementation and in the case of a broken symblink, it is silently discarded.
I don't know if it is a good enough solution but today's behavior is incorrect too.
In the Webdav Spec it is said that
I don't know if this apply in our use case