mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #143] Panics on PROPFIND // #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aneeshusa on GitHub (Nov 9, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/143
Thank you for making dufs! I just found it and set it up to use with Joplin and it's working a treat.
Glad to have a simple Rust webdav server available.
Problem
dufs panics when getting a PROPFIND request against
//. (PROPFIND against/works.)I consider the client sending a // to be buggy and will look to fix it upstream and have it send a
/but I would expect dufs not to panic and either handle the request or return an error.
I debugged this locally and it looks like the problem is in or around
extract_path:when the incoming request is for
//, we attempt tojoinan absolute path onto
self.args.path.Because it's an absolute path it is returned as-is without
self.args.pathat the front.Log
If applicable, add logs to help explain your problem.
Setup:
Works with
/:with a regular log line in the dufs output:
However, dufs panics on
//:with the following log output:
Environment:
dbf2de9cb9)