cozy-files icon indicating copy to clipboard operation
cozy-files copied to clipboard

Issues while searching files including chars like % or & or #

Open nicofrand opened this issue 10 years ago • 1 comments

When I search "%" there is a JS error on the client:

Uncaught URIError: URI malformed
(anonymous function) @ backbone-1.1.2.js:1306
_.map._.collect @ underscore-1.4.4.js:98
_.extend._extractParameters @ backbone-1.1.2.js:1303
(anonymous function) @ backbone-1.1.2.js:1253
(anonymous function) @ backbone-1.1.2.js:1481
_.some._.any @ underscore-1.4.4.js:208
_.extend.loadUrl @ backbone-1.1.2.js:1479
_.extend.navigate @ backbone-1.1.2.js:1530
_.extend.navigate @ backbone-1.1.2.js:1270
(anonymous function) @ folder.coffee:356

I do not know if this is related, but files won't find any search term with "&" even if there are files like "bonnie & clyde.txt". I believe any char which has a special meaning in URLs can't be used to search. However the client JS error only appears with "%".

nicofrand avatar Aug 07 '15 13:08 nicofrand

Thanks for reporting @nicofrand, I'll add this to our todo list, and we'll try to fix it soon.

clochix avatar Aug 10 '15 14:08 clochix