core icon indicating copy to clipboard operation
core copied to clipboard

JS scanFiles doesn´t work in chrome with whitespace in folder name

Open bender-ristone opened this issue 13 years ago • 4 comments

JS scanFiles doesn´t work in chrome with whitespace in folder name

Folder is "test test test"

Encode-Request is /owncloud/index.php/apps/files?dir=//test%20test%20test

PHP use $_GET['dir'] = //test%20test%20test (encoded) correctly is //test test test (decoded)

opendir doesn´t work with %20 for space

OC 4.5.5

bender-ristone avatar Dec 29 '12 22:12 bender-ristone

You're not supposed to call scanFiles yourself.

MTGap avatar Dec 29 '12 22:12 MTGap

But the ReScan app calls scanFiles, and subsequently also doesn't seem to work with folders with spaces in them. Should this be reported in the apps issue tracker?

RandolfCarter avatar Jan 08 '13 16:01 RandolfCarter

Have the same problem with owncloud 4.5.5

Deleted a whole bunch of conflict files directly from console and the rescan works only for folders without spaces.

Doesn't matter if chrome or internet explorer.

Need help.

subascha avatar Jan 08 '13 19:01 subascha

Same problem here, OC 4.5.6+Centos 6. The folder "Curso FORPAS" has whitespace.

[Mon Feb 18 07:55:50 2013] [error] [client my_ip] PHP Warning: opendir(/ficheros/myuser/files/Cursos%20FORPAS/): failed to open dir: No such file or directory in /var/www/html/discovirt/lib/filestorage/local.php on line 20, referer: https://mysite/discovirt/?app=files&dir=//Cursos%20FORPAS

gufete avatar Feb 18 '13 08:02 gufete