core icon indicating copy to clipboard operation
core copied to clipboard

Weird behaviour with Cyrillic-named files

Open einy opened this issue 13 years ago • 6 comments

I have got running:

  1. ownCloud server running on Windows 7 + latest PHP + latest MySQL,
  2. Windows sync client running on Windows 7,
  3. ownCloud web interface opened at a client machine (Windows 7 + latest Firefox).

After I put a cyrillic-named file to a synced directory:

  • it uploads ok, but within 30 seconds a baloon tip pops up saying "File removed. XXX.EXT has been removed", and the file vanishes from the synced dir as well.
  • but I still see this file via the web interface but with a distorted name (accent-rich letters instead of Cyrillic ones), and I can download/delete etc. the file from the web interface.
  • I see the file in a server storage dir (/owncloud/data/MyAccount/files/) with a distorted (accent-rich letters instead of Cyrillic ones) name.

After I drop a cyrillic-named file to a web interface using mouse:

  • it appears in a web interface with a CORRECT Cyrillic filename
  • it does not appear in the synced dir, although the detailed sync client's logs reads under "Errors" branch: "Files: XXX.EXT File count: Downloaded".
  • I see the file in a server storage dir (/owncloud/data/MyAccount/files/) with a distorted in another way (hyphens and numbers instead of Cyrillic ones) name.

einy avatar Aug 28 '13 13:08 einy

@ringmaster any free time available to have a look? THX

DeepDiver1975 avatar Aug 28 '13 22:08 DeepDiver1975

Typically, the filenames used on the server are transliterated in some way compared to the original filenames when using non-ASCII characters. It seems like something is going awry here, though. I reproduced the issue on IIS/Windows from both the sync client and the web client:

Directories with cyrillic filenames

It seems that the server is accepting the file, but then fails somehow in the transliteration to the filesystem. This can cause issues with the sync client deleting even files it just uploaded, as seen when this kind of thing happens.

I'll need to step through the process to see why this is happening, but I can at least confirm at this point that it does happen.

FYI: I'm using образец.txt and другой.txt for test filenames.

ringmaster avatar Aug 29 '13 01:08 ringmaster

Any update on this ? Is this a duplicate of something else ? I remember seeing many tickets related to file encoding issues in Windows.

PVince81 avatar Apr 03 '14 10:04 PVince81

Filename encoding issues on Windows are almost always related to the file mapper, which needs a solid review and probably an overhaul to get working properly.

We should consider picking a single ticket for Windows filename encoding issues and mark all of the related issues as dupes until we can merge a PR to solve the issue.

ringmaster avatar Apr 03 '14 14:04 ringmaster

Sounds like a good plan!

PVince81 avatar Apr 03 '14 14:04 PVince81

Files are treaten correctly in oC7, see #8226

nickvergessen avatar Aug 25 '14 08:08 nickvergessen