GNOME Bugzilla – Bug 631403
Saving file to FTP appends it, not overwrites
Last modified: 2010-10-13 21:33:10 UTC
Created attachment 171756 [details] corrupted file after editing and saving Multi-platform applications ( for example Geany, Netbeans, Komodo ) can't save files through gvfs to ftp mounted connections properly Creating files to ftp works fine. But editing and saving a remote file leads to the data simply being added to the end of the file, thereby corrupting the file and making it twice as large as the original. The corrupted file example is attached. The native GTK applications for example gedit and leafpad are working fine. I suppose that Geany, Netbeans, Komodo and other applications uses some method to save files that is supported on windows and linux. But doesn't work properly with gvfs. How to replicate it: 1) Mount FTP files through nautilus 2) Open some file with Geany or Netbeans or Komodo, change it and save 3) Reopen the file to see the issue.
I confirm this problem. After file editing through sftp in geany it has been spoiled.
I would add that in case of sftp the behavior a bit differently. The same problem with the those multi-platform applications. Instead of appending the files the are truncated to zero.
Can you please test the patch posted in bug 627567?
Problem fixed for me with this patch.
Thank you Tomas! it fixes the issue. /sending to Tomas a lot of beer