By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 3107

Summary: file contents lost using "save as"
Product: TDE Reporter: Gabriel Genellina <ggenellina>
Component: tdeutilsAssignee: Michele Calgaro <michele.calgaro>
Status: NEEDINFO ---    
Severity: critical CC: bugwatch, michele.calgaro
Priority: P5    
Version: R14.1.x [Trinity]   
Hardware: Other   
OS: Debian Buster   
Compiler Version: GNU 8.3.0 TDE Version String:
Application Version: 2.5.14 Application Name: kate

Description Gabriel Genellina 2020-05-13 21:57:59 CDT
- Open Kate, create a new file with any content and save it with name 'test.txt'
- Open a terminal and delete the file: rm test.txt
- Go back to Kate. A dialog appears "File deleted on disk, what do you want to do?" (caption translated from Spanish, not the actual English caption).
- Choose 'Save file as', enter 'test2.txt'
- An error dialog appears 'File test.txt could not be read'.
- File contents is completely LOST. Both the Kate editor window and the file 'test2.txt' on disk are empty.

Expected behavior for any 'Save' operation is to actually *save* the file, not lose it. Eventually, in case of any error, expected behavior would be to retain the currently loaded contents, not erase it. I choose severity 'critical' because of this.
(I don't see why is it trying to read the old file in the first place)
Comment 1 Michele Calgaro 2020-05-21 09:50:03 CDT
Hi Gabriel,
I followed your instructions and I can't reproduce the problem. The new file test2.txt is correctly saved and content is intact. what did you choose at step 3 when Kate opens the "File deleted on disk, what do you want to do?" dialog? Your choice there will affect the subsequent behavior
Comment 2 Michele Calgaro 2020-05-21 09:52:39 CDT
additional info: 
- if you choose "Reload" the content is gone.
- if you choose "Overwrite" the delete file is recreated correctly
- if you choose "Ignore" the original file is not recreated but the contents is still present in Kate. It can be save safely.