core icon indicating copy to clipboard operation
core copied to clipboard

Everything is deleted by windows clients from folder, where space character is last in folder name

Open netopier opened this issue 12 years ago • 3 comments

Hello,

One of my customer mistakenly created folder in Linux (or Mac OS - replicated this error) with name "something " - space as last character.

  • all clients synced this folder successfully (tested on win7, win8, Linux, MacOS)
  • then client on Linux, copied some data to this folder
  • after while this data are automatically deleted

This delete commands are from windows clients:

192.168.10.23 - test [23/Sep/2014:17:51:27 +0200] "DELETE /remote.php/webdav/Test_share/Test_subfolder/test_adresare_s_mezernikem%20/test%20z%20linuxu HTTP/1.1" 204 862 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.0"

192.168.10.28 - - [23/Sep/2014:17:57:28 +0200] "DELETE /remote.php/webdav/Test_share/Test_subfolder/test_adresare_s_mezernikem%20/test%20z%20linuxu HTTP/1.1" 404 1098 "-" "Mozilla/5.0 (Linux) csyncoC/0.91.4 neon/0.30.0"

First windows client hit, second get 404 because data are already deleted.

I know there are some issues with windows supporting this special chars in end of folder name and I know is not usual (why would anyone name folder like this?), but it should be prevented by owncloud client against deleting this data when some users mistakenly name folders like that.

Owncloud version is 7.0.2 cloient versions are last available.

Alex.

netopier avatar Sep 23 '14 16:09 netopier

@nickvergessen @dragotin

PVince81 avatar Sep 23 '14 16:09 PVince81

this is already fixed by https://github.com/owncloud/mirall/commit/2dfbc2058fe172eb8abc96b71da33031fdc5adc1

@lmaestro could you verify if time permits? Thanks.

dragotin avatar Sep 23 '14 21:09 dragotin

Yes, it is fixed.

luciamaestro avatar Sep 24 '14 08:09 luciamaestro