Case sensitivity with Linux SFTP server

Get help for specific problems
User avatar
Posts: 11
Joined: 30 Aug 2016

kurtmckee

Hi! First, thank you for your work on FreeFileSync!

While testing the FFS 8.10 beta I discovered a possible issue when mirroring from my local PC to a Linux host. The behavior I observed occurred when a subdirectory on my local PC had different capitalization than an existing remote directory. Here are the details:

- FreeFileSync 8.10 beta (32-bit)
- Windows 7 Enterprise SP1 (64-bit)
- SFTP protocol
- Synchronization setting: Mirror

I was able to distill the problem down to this local filesystem layout:
+---test-lowercase
|   \---mib
|           new.txt
|
\---test-uppercase
    \---MIB
            OLD.TXT
Then, I followed these steps to re-create the problem:

1. I mirrored the local "test-uppercase" directory so that the remote server had an uppercase "MIB" directory and a single file, "OLD.TXT". Here is the log:
[1:21:20 PM] Info: Synchronizing folder pair: [Mirror ->]
                       C:\Users\kurt\Desktop\test-uppercase
                       sftp://192.168.0.1/test
[1:21:20 PM] Info: Creating folder "sftp://192.168.0.1/test/MIB"
[1:21:20 PM] Info: Creating file "sftp://192.168.0.1/test/MIB/OLD.TXT"
[1:21:21 PM] Info: Synchronization completed successfully
2. I changed the local directory (the left pane in the GUI) to the "test-lowercase" directory and attempted to mirror again. FFS attempted to delete "OLD.TXT" from the lowercase "mib" directory before renaming the "MIB" directory to "mib". This resulted in an error message. Here is the log:
[1:22:01 PM] Info: Synchronizing folder pair: [Mirror ->]
                       C:\Users\kurt\Desktop\test-lowercase
                       sftp://192.168.0.1/test
[1:22:01 PM] Info: Deleting file "sftp://192.168.0.1/test/mib/OLD.TXT"
[1:22:08 PM] Error: Cannot delete file "sftp://192.168.0.1/test/mib/OLD.TXT".
                    LIBSSH2_ERROR_SFTP_PROTOCOL: SFTP Protocol Error LIBSSH2_FX_NO_SUCH_FILE [libssh2_sftp_unlink]
[1:22:08 PM] Info: Updating attributes of "sftp://192.168.0.1/test/MIB"
[1:22:08 PM] Info: Creating file "sftp://192.168.0.1/test/mib/new.txt"
[1:22:08 PM] Error: Synchronization completed with errors
- I re-ran the synchronization process. Because the "mib" directory was already renamed FFS was able to successfully delete the "OLD.TXT" file. Here is the log:
[1:22:33 PM] Info: Synchronizing folder pair: [Mirror ->]
                       C:\Users\kurt\Desktop\test-lowercase
                       sftp://192.168.0.1/test
[1:22:33 PM] Info: Deleting file "sftp://192.168.0.1/test/mib/OLD.TXT"
[1:22:33 PM] Info: Synchronization completed successfully
If you need additional information, logs, or want me to beta-test, please let me know! Thank you again for all of your hard work on FreeFileSync!!
User avatar
Site Admin
Posts: 7198
Joined: 9 Dec 2007

Zenju

Thanks for the detailed report! The issue has been fixed:
http://www.mediafire.com/file/8u443aved29bilz/FreeFileSync_8.10_beta_Windows_Setup.exe
User avatar
Posts: 11
Joined: 30 Aug 2016

kurtmckee

I'm sorry for the delay, somehow I missed your reply!

I've tested the beta release you linked and the issue is resolved! Thank you so much for your support! =)
User avatar
Posts: 11
Joined: 30 Aug 2016

kurtmckee

@Zenju, I see that FFS 8.10 has been released and the changelog indicates this issue has been fixed.

Thank you for your work!