Bug 464921

Summary: Overwrite larger newer file on fat32 deletes contents
Product: [Applications] dolphin Reporter: IJK98email <IJK98email>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 20.12.2   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:

Description IJK98email@gmail.com 2023-01-28 00:37:55 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When I try to overwrite a larger file with a smaller one
on fat32 micro SDcard, Dolphin deletes contents of file. After reinserting the
sdcard, it becomes noticeable.

STEPS TO REPRODUCE
1. Have hard drive formatted as btrfs, exfat, ext4, or anything, and sdcard formatted as fat32.
2. Make text file "config.txt" on hard drive and edit with Kate so it has "less text\n"
3. Make text file "config.txt" on fat32 sdcard and edit with Kate so it has "whatever text\n"
4. Drag and drop from hard drive to sdcard, select copy here, and overwrite.
5. It appears it has worked, but reinsert sdcard and open "config.txt" file on sdcard with Kate and it is empty "".

I have two hard drives with btrfs and exfat and they both did same thing. Also I am using Vivitar sdcard reader MOV416-WHT.

OBSERVED RESULT
 Open "config.txt" file on sdcard with Kate and it is empty ""

EXPECTED RESULT
 Open "config.txt" file on sdcard with Kate and it should have "less text\n"

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Debian
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version:  5.78.0
Qt Version: 5.15.2
Kernal version: 5.10.0-21-rt-amd64

ADDITIONAL INFORMATION
Albert Astals Cid tried to replicate the bug, but couldn't. So it is just me. :(