davros icon indicating copy to clipboard operation
davros copied to clipboard

'#' in file and folder names causes problems

Open timhowes opened this issue 8 years ago • 5 comments

If I enter a folder name in the web interface containing #, everything after # is ignored (treated as a comment?). If a file or folder is synced from the local folder using owncloud, it shows up in the web interface, but clicking on it leads to a 404.

timhowes avatar Feb 26 '16 17:02 timhowes

Happens for me too. Unfortunately i put some files containing # to one of my davros installs via sync client (Syncovery) but am not able to delete of view or download them afterwards, although they exist physically. WebUI and sync client cannot acces them. (Tried both).

Sniper-SnX avatar Nov 15 '16 07:11 Sniper-SnX

& is another character that causes problems. Also related to #15.

garrison avatar Jun 25 '21 19:06 garrison

These are characters that have special meaning in URLs; I would hazard a guess that fixing this is just a matter of putting encodeURIComponent/decodeURIComponent in the right places.

zenhack avatar Jul 07 '21 03:07 zenhack

I see the issue; generally we automatically uri-encode things but creating a new directory puts the new directory name in the path of a MKCOL. Should be a straightforward fix.

mnutt avatar Aug 19 '21 13:08 mnutt

Fyi, for me the & was in a filename, not a folder name. (Specifically, I uploaded a file named b&w.png, but clicking on it led to a 404.)

garrison avatar Aug 19 '21 13:08 garrison