[Bug]: multiple consecutive spaces in folder name breaks folder access #48136
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
I have a folder with a single quote in it ( ' ) and a plus sign in it ( + ) I expected that to be the problem, but when I created a test folder named te+s't there was not any problem in accessing that folder including its test files.
Then I noticed that the problem folder also contained two spaces. I first tested with one space "t e+s't". That also did not result in any problems. But adding a second space after the first one all access to that folder was lost via the web interface and also the desktop client gave errors (I run windows 10 desktop client version 3.14.0)
Steps to reproduce
- create a folder with name "t e+s't" (TWO spces between the 't' and the 'e' !)
- sync via the desktop client
- see the errors mounting..
Expected behavior
I understand two spaces is a bit odd.. but it can happen.. and should work..
Nextcloud Server version
28
Operating system
RHEL/CentOS
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
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?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
I am hesitant to do more testing since I am unable to correct the problem.
I use nextcloud with S3 for data storage. The file id's are there. I simply can't access them. A problem in the DAV connector ?
Activity