You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: Problem with external storage (WebDAV) and folder names with "+" in it, in combination with Synology WebDav server or rclone Webdav server
#42932
I connect my Nextcloud instance with my Synology with installed WebDAV server. Same thing happens also with the rclone webdav server.
If there is a folder with a "+" in the name on the Synology then Nextcloud removes the + from the name and subsequently gets an access error because the name is not found.
It works well with files, the problem only exists with folders.
Error (raw see below):
[webdav] Fehler: Sabre\HTTP\ClientHttpException: Not Found
PROPFIND /remote.php/dav/files/Martin/synbackup/d/aaa/a%20b/
von 5.83.183.34 von xxx um 18.01.2024, 12:02:09
The error message shows the "+" (%2b) substituted with a space (%20), so there was a conversion somewhere.
If I actually connect the external storage with the Nextcloud instance itself, then it works. So the problem seems to only occur in the combination with the synology webdav server or rclone Webdav server.
Happens with php 8.3 and 8.2.
Steps to reproduce
Connect Nextcloud with external storage and Webdav to a Synology webdav server or a rclone webdav server. To setup a rclone webdav server simply execute "rclone serve webdav ".
On the file system I create a folder with a + in the name:
On WinSCP I verify that everything works well, therefore I assume the problem is not on the webdav server:
If I look at it from Nextcloud the "+" is exchanged by a space " ".
When I get into the folder from Nextcloud, the content is empty:
That activity triggers an error entry in the sys logs:
Expected behavior
Folders with + in the name can be properly accessed.
Installation method
Community Web installer on a VPS or web space
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
{"reqId":"hZAi4lwuDldyL3TAHqXO","level":3,"time":"2024-01-18T11:02:09+00:00","remoteAddr":"5.83.183.34","user":"Martin","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/Martin/synbackup/d/aaa/a%20b/","message":"Sabre\\HTTP\\ClientHttpException: Not Found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"28.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Sabre\\HTTP\\ClientHttpException: Not Found","Code":0,"Trace":[{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":83,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/apps/dav/lib/Server.php","line":370,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/data/www/nextcloud/remote.php","line":172,"args":["/data/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/data/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":217,"message":"Sabre\\HTTP\\ClientHttpException: Not Found","exception":[],"CustomMessage":"Sabre\\HTTP\\ClientHttpException: Not Found"},"id":"65a9055bf0c07"}
Additional info
No response
The text was updated successfully, but these errors were encountered:
johnny-gonzales
changed the title
[Bug]: Problem with external storage (WebDAV) and folder names with "+" in it, in combination with Synology WebDav server
[Bug]: Problem with external storage (WebDAV) and folder names with "+" in it, in combination with Synology WebDav server or rclone Webdav server
Jan 19, 2024
The problem does not only occur with the Synology webdav server, exactly the same thing happens also with the rclone webdav server. I changed the title and description.
Rclone webdav server is very easy to setup.
To reproduce:
start rclone with "rclone serve webdav /data" and connect Nextcloud to it.
Bug description
I connect my Nextcloud instance with my Synology with installed WebDAV server. Same thing happens also with the rclone webdav server.
If there is a folder with a "+" in the name on the Synology then Nextcloud removes the + from the name and subsequently gets an access error because the name is not found.
It works well with files, the problem only exists with folders.
Error (raw see below):
[webdav] Fehler: Sabre\HTTP\ClientHttpException: Not Found
PROPFIND /remote.php/dav/files/Martin/synbackup/d/aaa/a%20b/
von 5.83.183.34 von xxx um 18.01.2024, 12:02:09
The error message shows the "+" (%2b) substituted with a space (%20), so there was a conversion somewhere.
If I actually connect the external storage with the Nextcloud instance itself, then it works. So the problem seems to only occur in the combination with the synology webdav server or rclone Webdav server.
Happens with php 8.3 and 8.2.
Steps to reproduce
Expected behavior
Folders with + in the name can be properly accessed.
Installation method
Community Web installer on a VPS or web space
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
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
No response
The text was updated successfully, but these errors were encountered: