Bug 464921 - Overwrite larger newer file on fat32 deletes contents
Summary: Overwrite larger newer file on fat32 deletes contents
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-28 00:37 UTC by IJK98email@gmail.com
Modified: 2023-01-28 00:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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