Cannot makedir in some WebDAV external storage if trailing slash is removed #37189
Open
6 of 9 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
feature: external storage
technical debt
Bug description
When trying to create a directory in WebDAV external storage I see the following error in the WebDAV server:
MKCOL can create a collection only
server: , request: "MKCOL /images HTTP/1.1
As discussed at https://trac.nginx.org/nginx/ticket/1966 Nginx requires a trailing slash, this seems to be a requirement in WebDAV. This functionserver/lib/private/Files/Utils/PathHelper.php
Line 52 in dda79b5
server/lib/private/Files/Storage/DAV.php
Line 190 in dda79b5
A complicated workaround for NGINX exists https://www.robpeck.com/2020/06/making-webdav-actually-work-on-nginx/
Steps to reproduce
Expected behavior
The MKCOL request includes a trailing slash
Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
NA
The text was updated successfully, but these errors were encountered: