Bug 40115

Summary: Remote files locally downloaded by KIO (for use in non-KDE software) are only re-uploaded after the app quits, not after every save operation
Product: [Frameworks and Libraries] frameworks-kio Reporter: jason
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: grave CC: adminimus, bugseforuns, elvis.angelaccio, ibc, kdelibs-bugs, ken.hodson, nate, pepko94, rafael.linux.user, simonandric5
Priority: HI Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Other   
See Also: https://bugs.kde.org/show_bug.cgi?id=75324
Latest Commit: Version Fixed In: 5.34
Sentry Crash Report:

Description jason 2002-04-04 05:58:51 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           KDE 3.0.0 
Severity:          normal
Installed from:    RedHat RPMs
Compiler:          Not Specified
OS:                Not Specified
OS/Compiler notes: Not Specified

Repro sequence:

1. Opened Konqueror.
2. Entered following URL: sftp://foo.bar/home/jason
3. Pressed enter remote directly listing displayed in Konqueror.
4. Right clicked on a remote file (Foo.java) selected 'Open With >' then 'Other...'.
6. 'Other...' dialog box opened selected 'Vi Improved'.
7. File was transferred to local temp storage then opened in ViM.
8. Made some edits to the file then saved those changes.
9. At time of saving file changes were not uploaded to the remote sftp server (which is the expected behavior).
10. Exited from ViM.
11. Dialog box appeared saying 'The file .... do you want to upload the changes'

The problem is that the remote version of the file is only updated when the application is exited. The user expectation is that the changes should be sent to the remote server as the changes are written out to the local copy.

The reason for this user expectation (that changes to remote files should be uploaded each time the file is saved) is that this is how KDE VFS-aware applications (like Kate Kedit) behave. This may be a limitation of the VFS infrastructure for non VFS-aware applications but I'm not sure.

(Submitted via bugs.kde.org)
(Called from KBugReport dialog. Fields Application KDE Version OS Compiler manually changed)
Comment 1 Nate Graham 2018-04-23 19:54:33 UTC
This bug is one of the major reasons why people request FUSE support for KIO, and significantly impairs the common use case of editing a file in LibreOffice (or another non-KDE app) that's located on a Samba share. It's even a possible data loss risk since the original document isn't updated after every save operation, leading to a discrepancy between the document's actual state and its perceived state in the user's mind.
Comment 2 Nate Graham 2018-04-23 20:01:41 UTC
*** Bug 125458 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2018-04-23 20:03:08 UTC
*** Bug 215283 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2018-04-23 20:06:24 UTC
*** Bug 349815 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2018-04-24 18:50:24 UTC
*** Bug 223592 has been marked as a duplicate of this bug. ***
Comment 6 Elvis Angelaccio 2018-09-02 10:40:04 UTC
This has been fixed since KIO 5.34, see https://commits.kde.org/kio/a7758fb66481f05d1791687b415331a4f4af782f
Comment 7 Nate Graham 2018-09-03 21:50:35 UTC
So it has. Thanks Elvis!