[Bug]: files/dav: uploading to a folder containing double quotes fails
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
Uploading a file to a folder via the files app fails (and in a non-comprehensible way), if the folder to upload to contains a double quote ("):
- Start upload, progress bar is shown
- Server logs
OCA\DAV\Connector\Sabre\Exception\FileLocked: "<filename>.upload.part is locked" - 0% progress remains, remaining time estimation increases a few times
- After roughly 1 minute, the client aborts the upload attempt, shows "unkown error, HTTP 502"
- Server logs
Sabre\DAV\Exception\BadRequest: "expected file size nnnnnnn, but only 40960 bytes read and written"
Steps to reproduce
- Open the files app and create a folder named e.g.
"foobar"(including the double quotes). - Browse to the folder and attempt to upload a file.
Expected behavior
In this case, I'd expect the file upload to succeed.
If, however, a file upload fails for whatever (permanent) reason on the server-side, the server shall let the client know incl. the reason, and the client shall immediately abort and show the reason to the user.
(But maybe the issue here is purely client-side.)
Nextcloud Server version
33
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"skeletondirectory": "\/var\/www\/html\/nextcloud\/default_folders",
"dbtype": "mysql",
"version": "33.0.6.2",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"maintenance": false,
"logfile": "\/var\/log\/nextcloud\/nextcloud.log",
"loglevel": 1,
"logdateformat": "F d, Y H:i:s",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"overwriteprotocol": "https",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"htaccess.RewriteBase": "\/",
"default_language": "de",
"force_language": "de",
"default_locale": "de_DE",
"force_locale": "de_DE",
"encryption.legacy_format_support": false,
"encryption.key_storage_migrated": false,
"default_phone_region": "DE",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_sendmailmode": "smtp",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpsecure": "ssl",
"theme": "",
"maintenance_window_start": 1
}
}
List of activated Apps
Enabled:
- activity: 6.0.0
- admin_audit: 1.23.0
- app_api: 33.0.0
- bruteforcesettings: 6.0.0
- calendar: 6.5.0
- circles: 33.0.0
- cloud_federation_api: 1.17.0
- contacts: 8.7.2
- contactsinteraction: 1.14.1
- dav: 1.36.0
- encryption: 2.21.0
- federatedfilesharing: 1.23.0
- federation: 1.23.0
- files: 2.5.0
- files_automatedtagging: 4.0.0
- files_downloadlimit: 5.1.0
- files_pdfviewer: 6.0.0
- files_reminders: 1.6.0
- files_retention: 4.0.1
- files_sharing: 1.25.2
- files_trashbin: 1.23.0
- files_versions: 1.26.0
- flow_notifications: 4.0.0
- forms: 5.3.2
- groupfolders: 21.0.9
- logreader: 6.0.0
- lookup_server_connector: 1.21.0
- mail: 5.10.5
- nextcloud_announcements: 5.0.0
- notifications: 6.0.0
- oauth2: 1.21.0
- password_policy: 5.0.0
- privacy: 5.0.0
- profile: 1.2.0
- provisioning_api: 1.23.0
- recommendations: 6.0.0
- related_resources: 4.0.0
- secrets: 3.0.3
- serverinfo: 5.0.0
- settings: 1.16.0
- sharebymail: 1.23.0
- spreed: 23.0.7
- support: 5.0.0
- survey_client: 5.0.0
- suspicious_login: 11.0.0
- systemtags: 1.23.0
- text: 7.0.1
- theming: 2.8.0
- twofactor_backupcodes: 1.22.0
- twofactor_totp: 15.0.0
- updatenotification: 1.23.0
- user_ldap: 1.24.0
- user_status: 1.13.0
- viewer: 6.0.0
- weather_status: 1.13.0
- webhook_listeners: 1.5.0
- workflowengine: 2.15.0
Disabled:
- announcementcenter: 7.4.1 (installed 7.4.1)
- comments: 1.23.0 (installed 1.8.0)
- dashboard: 7.13.0 (installed 7.10.0)
- deck: 1.17.4 (installed 1.17.4)
- files_external: 1.25.1
- firstrunwizard: 6.0.0 (installed 2.7.0)
- photos: 6.0.0 (installed 2.5.0)
- polls: 9.1.4 (installed 9.1.4)
- tables: 2.2.0 (installed 2.2.0)
- testing: 1.23.0
- twofactor_nextcloud_notification: 7.0.0
- workflow_script: 4.0.1 (installed 4.0.1)
Nextcloud Signing status
Nextcloud Logs
{
"reqId": "D0Gd7eNZJNNKTnnD2nTt",
"level": 1,
"time": "July 06, 2026 15:08:03",
"remoteAddr": "***REMOVED SENSITIVE VALUE***",
"user": "***USER-ID***",
"app": "no app in context",
"method": "PUT",
"url": "/remote.php/dav/files/***USER-ID***/darf%20der%20%22so%22%20hei%C3%9Fen/20230404_105305.jpg",
"scriptName": "/remote.php",
"message": "Uncaught exception",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0",
"version": "33.0.6.2",
"exception": {
"Exception": "OCA\\DAV\\Connector\\Sabre\\Exception\\FileLocked",
"Message": "\"/darf der \"so\" hei\u00dfen/20230404_105305.jpg.upload.part\" is locked",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1098,
"function": "createFile",
"class": "OCA\\DAV\\Connector\\Sabre\\Directory",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 504,
"function": "createFile",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpPut",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
"line": 212,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Server.php",
"line": 428,
"function": "start",
"class": "OCA\\DAV\\Connector\\Sabre\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",
"line": 25,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/remote.php",
"line": 151,
"args": [
"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
"Line": 138,
"Previous": {
"Exception": "OCP\\Lock\\LockedException",
"Message": "\"/darf der \"so\" hei\u00dfen/20230404_105305.jpg.upload.part\" is locked",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/lib/private/Files/View.php",
"line": 2161,
"function": "lockPath",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
"line": 124,
"function": "lockFile",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1098,
"function": "createFile",
"class": "OCA\\DAV\\Connector\\Sabre\\Directory",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 504,
"function": "createFile",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpPut",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
"line": 212,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Server.php",
"line": 428,
"function": "start",
"class": "OCA\\DAV\\Connector\\Sabre\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",
"line": 25,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/remote.php",
"line": 151,
"args": [
"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/lib/private/Files/View.php",
"Line": 2064,
"Previous": {
"Exception": "OCP\\Lock\\LockedException",
"Message": "\"files/2728ddc06ed93ec71d59c86bc5db169d\"(\"files/darf der \"so\" hei\u00dfen/20230404_105305.jpg.upload.part\") is locked",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 306,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Common",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 306,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 306,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/View.php",
"line": 2056,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/View.php",
"line": 2161,
"function": "lockPath",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
"line": 124,
"function": "lockFile",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1098,
"function": "createFile",
"class": "OCA\\DAV\\Connector\\Sabre\\Directory",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 504,
"function": "createFile",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpPut",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
"line": 212,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Server.php",
"line": 428,
"function": "start",
"class": "OCA\\DAV\\Connector\\Sabre\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",
"line": 25,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/remote.php",
"line": 151,
"args": [
"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/lib/private/Files/Storage/Common.php",
"Line": 650,
"Previous": {
"Exception": "OCP\\Lock\\LockedException",
"Message": "\"files/2728ddc06ed93ec71d59c86bc5db169d\"(\"home::***USER-ID***::files/darf der \"so\" hei\u00dfen/20230404_105305.jpg.upload.part\") is locked",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Common.php",
"line": 648,
"function": "acquireLock",
"class": "OC\\Lock\\DBLockingProvider",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 306,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Common",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 306,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
"line": 306,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/View.php",
"line": 2056,
"function": "acquireLock",
"class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Files/View.php",
"line": 2161,
"function": "lockPath",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
"line": 124,
"function": "lockFile",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 1098,
"function": "createFile",
"class": "OCA\\DAV\\Connector\\Sabre\\Directory",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 504,
"function": "createFile",
"class": "Sabre\\DAV\\Server",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpPut",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
"line": 212,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/lib/Server.php",
"line": 428,
"function": "start",
"class": "OCA\\DAV\\Connector\\Sabre\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",
"line": 25,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/remote.php",
"line": 151,
"args": [
"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/nextcloud/lib/private/Lock/DBLockingProvider.php",
"Line": 139
}
}
},
"message": "Uncaught exception",
"exception": "{\"class\":\"OCA\\DAV\\Connector\\Sabre\\Exception\\FileLocked\",\"message\":\"\\\"/darf der \\\"so\\\" hei\u00dfen/20230404_105305.jpg.upload.part\\\" is locked\",\"code\":0,\"file\":\"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php:138\",\"trace\":\"#0 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\\DAV\\Connector\\Sabre\\Directory->createFile()\\n#1 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\\DAV\\Server->createFile()\\n#2 /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpPut()\\n#3 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\\n#4 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#5 /var/www/html/nextcloud/apps/dav/lib/Server.php(428): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#6 /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#7 /var/www/html/nextcloud/remote.php(151): require_once('...')\\n#8 {main}\",\"previous\":{\"class\":\"OCP\\Lock\\LockedException\",\"message\":\"\\\"/darf der \\\"so\\\" hei\u00dfen/20230404_105305.jpg.upload.part\\\" is locked\",\"code\":0,\"file\":\"/var/www/html/nextcloud/lib/private/Files/View.php:2064\",\"trace\":\"#0 /var/www/html/nextcloud/lib/private/Files/View.php(2161): OC\\Files\\View->lockPath()\\n#1 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(124): OC\\Files\\View->lockFile()\\n#2 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\\DAV\\Connector\\Sabre\\Directory->createFile()\\n#3 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\\DAV\\Server->createFile()\\n#4 /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpPut()\\n#5 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\\n#6 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#7 /var/www/html/nextcloud/apps/dav/lib/Server.php(428): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#8 /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#9 /var/www/html/nextcloud/remote.php(151): require_once('...')\\n#10 {main}\",\"previous\":{\"class\":\"OCP\\Lock\\LockedException\",\"message\":\"\\\"files/2728ddc06ed93ec71d59c86bc5db169d\\\"(\\\"files/darf der \\\"so\\\" hei\u00dfen/20230404_105305.jpg.upload.part\\\") is locked\",\"code\":0,\"file\":\"/var/www/html/nextcloud/lib/private/Files/Storage/Common.php:650\",\"trace\":\"#0 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(306): OC\\Files\\Storage\\Common->acquireLock()\\n#1 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(306): OC\\Files\\Storage\\Wrapper\\Wrapper->acquireLock()\\n#2 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(306): OC\\Files\\Storage\\Wrapper\\Wrapper->acquireLock()\\n#3 /var/www/html/nextcloud/lib/private/Files/View.php(2056): OC\\Files\\Storage\\Wrapper\\Wrapper->acquireLock()\\n#4 /var/www/html/nextcloud/lib/private/Files/View.php(2161): OC\\Files\\View->lockPath()\\n#5 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(124): OC\\Files\\View->lockFile()\\n#6 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\\DAV\\Connector\\Sabre\\Directory->createFile()\\n#7 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\\DAV\\Server->createFile()\\n#8 /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpPut()\\n#9 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\\n#10 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#11 /var/www/html/nextcloud/apps/dav/lib/Server.php(428): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#12 /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#13 /var/www/html/nextcloud/remote.php(151): require_once('...')\\n#14 {main}\",\"previous\":{\"class\":\"OCP\\Lock\\LockedException\",\"message\":\"\\\"files/2728ddc06ed93ec71d59c86bc5db169d\\\"(\\\"home::***USER-ID***::files/darf der \\\"so\\\" hei\u00dfen/20230404_105305.jpg.upload.part\\\") is locked\",\"code\":0,\"file\":\"/var/www/html/nextcloud/lib/private/Lock/DBLockingProvider.php:139\",\"trace\":\"#0 /var/www/html/nextcloud/lib/private/Files/Storage/Common.php(648): OC\\Lock\\DBLockingProvider->acquireLock()\\n#1 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(306): OC\\Files\\Storage\\Common->acquireLock()\\n#2 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(306): OC\\Files\\Storage\\Wrapper\\Wrapper->acquireLock()\\n#3 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(306): OC\\Files\\Storage\\Wrapper\\Wrapper->acquireLock()\\n#4 /var/www/html/nextcloud/lib/private/Files/View.php(2056): OC\\Files\\Storage\\Wrapper\\Wrapper->acquireLock()\\n#5 /var/www/html/nextcloud/lib/private/Files/View.php(2161): OC\\Files\\View->lockPath()\\n#6 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php(124): OC\\Files\\View->lockFile()\\n#7 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(1098): OCA\\DAV\\Connector\\Sabre\\Directory->createFile()\\n#8 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(504): Sabre\\DAV\\Server->createFile()\\n#9 /var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpPut()\\n#10 /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\\n#11 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#12 /var/www/html/nextcloud/apps/dav/lib/Server.php(428): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#13 /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#14 /var/www/html/nextcloud/remote.php(151): require_once('...')\\n#15 {main}\"}}}}",
"CustomMessage": "Uncaught exception"
}
}
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the upload through the files app using a folder containing double quotes, then start with apps/dav/lib/Connector/Sabre/Directory.php and the logged PUT request to the remote DAV endpoint. Trace the .upload.part locking and subsequent file-size error, and verify that uploads to quoted folders succeed or that a permanent failure is reported immediately with its reason.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100