MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

WebDav DELETE request for directories is missing trailing slash

Open njam opened this issue 3 months ago • 0 comments

The nginx WebDav server requires a trailing slash for DELETE requests on paths, but MaterialFiles is not sending it.

According to the WebDAV RFC, section 5.2:

In general, clients SHOULD use the trailing slash form of collection names.

I know it doesn't say "MUST", but it says "SHOULD", but still Nginx requires the trailing slash in this case. Otherwise it errors with status 409. Nginx doesn't seem willing to change this behaviour, see this related ticket: https://trac.nginx.org/nginx/ticket/1966

Would it be possible to have MaterialFiles send a trailing slash when DELETEing directories?

njam avatar Sep 19 '25 14:09 njam