desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Desktop client 33.0.0-rc fails to sync files bigger than 100mb

Open sbaum opened this issue 8 months ago • 1 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

Desktop client v33.0.0-rc2 fails to sync files that are bigger than 100mb (104857600 bytes). Desktop clients v4.0.6 (Win11) and v4.0.4 (Linux Mint) are syncing these files without any problem.

I'm self-hosting up-to-date Nextcloud AIO running behind a custom configured Caddy server (reverse proxying several services).

I think the relevant bug message from the server log is...

Requested uri (/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data) is out of base uri (/remote.php/dav/)

...because it seems strange to me that the protocol and the FQDN (https%3A/mycloud.mydomain.tld) are treated as part of the uri. As the sync works flawlessly with clients v4.0.6 and v4.0.4 there is probably a bug in v33.0.0-rc2.

Steps to reproduce

  1. Create testfile with 104857601 bytes.
  2. Try to sync the testfile to nextcloud using desktop client v33.0.0-rc2.

Expected behavior

Files of all sizes should be synced without problems (like it is working with desktop client v4.0.6 and v4.0.4).

Which files are affected by this bug

all files with at least 104857601 bytes

Operating system

Windows

Which version of the operating system you are running.

Windows 11 (and Linux Mint 22.3 with official AppImage)

Package

Official Windows MSI

Nextcloud Server version

32.0.6

Nextcloud Desktop Client version

33.0.0-rc2

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.16.1 to 3.16.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • [x] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs

{"reqId":"phNfqR9xt0vai9CHuLtM","level":0,"time":"2026-03-09T18:45:32+00:00","remoteAddr":"(censored)","user":"myuser","app":"webdav","method":"PUT","url":"/remote.php/dav/uploads/myuser/2425371421/00001","scriptName":"/remote.php","message":"Requested uri (/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data) is out of base uri (/remote.php/dav/)","userAgent":"Mozilla/5.0 (Linux) mirall/32.0.82rc2 (build 37665) (Nextcloud, linuxmint-6.14.0-37-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.6.1","clientReqId":"7ebfa7ed-4103-4003-87a4-1b35e4acd865","exception":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data) is out of base uri (/remote.php/dav/)","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/QuotaPlugin.php","line":80,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"OCA\\DAV\\Connector\\Sabre\\QuotaPlugin","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***",{"__class__":"OCA\\DAV\\Upload\\UploadFolder"},false]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeCreateFile",["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***",{"__class__":"OCA\\DAV\\Upload\\UploadFolder"},false]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","Line":576,"message":"Requested uri (/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data) is out of base uri (/remote.php/dav/)","exception":{},"CustomMessage":"Requested uri (/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data) is out of base uri (/remote.php/dav/)"}}
{"reqId":"phNfqR9xt0vai9CHuLtM","level":1,"time":"2026-03-09T18:45:32+00:00","remoteAddr":"(censored)","user":"myuser","app":"no app in context","method":"PUT","url":"/remote.php/dav/uploads/myuser/2425371421/00001","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Linux) mirall/32.0.82rc2 (build 37665) (Nextcloud, linuxmint-6.14.0-37-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.6.1","clientReqId":"7ebfa7ed-4103-4003-87a4-1b35e4acd865","exception":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Requested uri (/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data) is out of base uri (/remote.php/dav/)","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/QuotaPlugin.php","line":80,"function":"calculateUri","class":"Sabre\\DAV\\Server","type":"->","args":["/https%3A/mycloud.mydomain.tld/remote.php/dav/files/myuser/Downloads/100mb_plus_1b.data"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"OCA\\DAV\\Connector\\Sabre\\QuotaPlugin","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***",{"__class__":"OCA\\DAV\\Upload\\UploadFolder"},false]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeCreateFile",["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***",{"__class__":"OCA\\DAV\\Upload\\UploadFolder"},false]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","Line":576,"message":"Uncaught exception","exception":{},"CustomMessage":"Uncaught exception"}}

Additional info

I have anonymized the log.

sbaum avatar Mar 09 '26 19:03 sbaum

Thanks for the report! I could reproduce this with the rc2 appimage as well.

will take a look at what's happening there

nilsding avatar Mar 09 '26 21:03 nilsding