nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.17k stars 4.04k forks source link

character % in filename #11780

Closed xan-it closed 6 years ago

xan-it commented 6 years ago
### Steps to reproduce 1. upload a file with a filename containing the character % (e.g. "test % test.txt") 2. reload directory ### Expected behaviour display the filename ### Actual behaviour no content at all, only the loading spinner forever ### Server configuration VM + official docker image **Operating system**: Ubuntu 14.x + 18.x **Web server:** Apache **Database:** SQLite + MySQL 5.7 **PHP version:** 7.0.32 **Nextcloud version:** (see Nextcloud admin page) nextcloud 14.0.1 + 14.0.2 **Updated from an older Nextcloud/ownCloud or fresh install:** updated **Where did you install Nextcloud from:** **Signing status:**
Signing status ``` Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here. No errors have been found.
**List of activated apps:**
Accessibility, Activities for shared file downloads, Activity, Auditing / Logging, Brute-force settings, Collabora Online, Collaborative tags, Data Request, Deleted files, File sharing, Group folders, Log Reader, Monitoring, Nextcloud announcements, Notifications, Password policy, PDF viewer, Support, Text editor, Update notification, User account deletion, Versions, Video player ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ```
**Nextcloud configuration:**
Config report ``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder or Insert your config.php content here. Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …) ```
**Are you using external storage, if yes which one:** local/smb/sftp/... **Are you using encryption:** yes/no **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... #### LDAP configuration (delete this part if not used)
LDAP config ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your Nextcloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ```
### Client configuration **Browser:** **Operating system:** ### Logs #### Web server error log
Web server error log ``` Insert your webserver log here ```
#### Nextcloud log (data/nextcloud.log)
Nextcloud log ``` Insert your Nextcloud log here ```
#### Browser log
Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
nextcloud-bot commented 6 years ago

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/7762 (Special characters in filenames), https://github.com/nextcloud/server/issues/8386 (Can't sync file with tab or newline character in filename), https://github.com/nextcloud/server/issues/1560 (4 byte unicode characters in filenames with MariaDB causes severe bugs), https://github.com/nextcloud/server/issues/5475 (Add the filename to the share link), and https://github.com/nextcloud/server/pull/10030 (Do not allow RTLO char in filenames).

martini1992 commented 6 years ago

It's actually solved by this commit 0f030d885b735fa52536578d2cd269e3e9e39ffa, URI being decoded twice, blows up the second time when it hits a special character such as a %

MorrisJobke commented 6 years ago

Fixed by #11744