Bug 40115 - 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
Summary: Remote files locally downloaded by KIO (for use in non-KDE software) are only...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Other
: HI grave
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: usability
: 125458 215283 223592 349815 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-04 06:03 UTC by jason
Modified: 2018-09-03 21:50 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.34


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!