Bug 122439

Summary: kate & fish protocol with "Save As"
Product: [Frameworks and Libraries] kdelibs Reporter: Daniel P. Stasinski <mooooooo>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Daniel P. Stasinski 2006-02-21 19:51:39 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    Fedora RPMs
OS:                Linux

This is a "bug/quirk" that hurt.

I was editing a remote file in Kate (fish protocol).

When using "Save As" with remote files, Kate apparently first saves the file under its current name (bad), then dupes that file, closes the current file and finally loads the duped/renamed file.

It should not first save the file with it's current name.  This defeats the whole purpose of saving it as another file name.

In my case, it lost me my original text file and I ended up with duplicate edited files.
Comment 1 Christoph Cullmann 2008-02-10 20:21:57 UTC
We use the normal kparts method, if that is broken, thats a kdelibs problem
Comment 2 Dario Andres 2009-05-01 20:05:51 UTC
Here using:

Qt: 4.5.1 (qt-copy  958974)
KDE: 4.2.71 (KDE 4.2.71 (KDE 4.3 >= 20090428))
kdelibs svn rev. 960693 / kdebase svn rev. 960693
on ArchLinux i686 - Kernel 2.6.29.1

When editing a file under smb:/, "Save As" doesn't write the changes to the current filename. (so it keeps unchanged)

Can you still reproduce this with a KDE4 version and any other non-local protocol. (May be it's only related to fish:/ (which I can't test))

Thanks
Comment 3 Erlend Hamberg 2009-05-01 20:15:04 UTC
I could not reproduce this. (openSuse 11.1, KDE 4.2.2)

I opened vaffel.txt over fish://, changed its contents and saved as vaffel2.txt. The first file's contents was unchanged and the second file had the expected contents.
Comment 4 Dario Andres 2009-05-01 20:16:13 UTC
Marking as WORKSFORME