PFERD icon indicating copy to clipboard operation
PFERD copied to clipboard

Unicode Errors result in always re-download

Open sn00py1310 opened this issue 1 year ago • 3 comments

There seems to be a bug with Unicode detecting the same filename on the disk and the server differently. So it re-downloads the whole file every time.

grafik

  Added 'Übungsmaterial/Folien_Übung2.pdf'
  Deleted 'Übungsmaterial/Folien_Übung2.pdf'

Exact copied output. You can see it here https://www.soscisurvey.de/tools/view-chars.php

Redownload is on default OS: Windows 10 Version: PFERD 3.4.3

sn00py1310 avatar May 25 '23 19:05 sn00py1310

Sounds like the file name is not unicode normalized on ilias, but at some point after downloading the file it is unicode normalized to NFC/NFKC. What file system are you running this on?

Garmelon avatar May 25 '23 20:05 Garmelon

After further research, I could pinpoint the root cause of the issue. It's a combination of PFERD, ILIAS and synchronization tools. A lot of the tools for synchronization normalize the file-/foldernames. In my case, it's syncthing. There isn't probably a good solution in PFERD for this type of issue.

sn00py1310 avatar May 31 '23 22:05 sn00py1310

A setting (disabled by default) to normalize paths before applying transforms could maybe fix this.

Garmelon avatar Jun 01 '23 09:06 Garmelon