Bug 430252

Summary: File inside archive shows up with 0 size in overwrite dialog
Product: [Frameworks and Libraries] frameworks-kio Reporter: Misha Shaygu <long76.git>
Component: Overwrite dialogAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs, kfm-devel, long76.git, nate
Priority: NOR    
Version: 5.76.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Misha Shaygu 2020-12-11 09:07:12 UTC
SUMMARY
Filesystem: BTRFS

First case:

STEPS TO REPRODUCE
1. Open folder/archive
2. Select files(ex. a.txt)
3. Drag files to folder with the same name files(ex. a.txt)

OBSERVED RESULT
Dialog confirm replace, source file and dest file have zero size.

EXPECTED RESULT
Dialog confirm replace, source file and dest file have their size.

Second case:

STEPS TO REPRODUCE
1. Open Telegram
2. Select files(ex. a.txt)
3. Drag files to chat(ex. a.txt)

OBSERVED RESULT
Message: "Impossible send empty file: ./a.txt"

EXPECTED RESULT
File sended to chat.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-56-generic
OS Type: 64-bit

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-12-11 14:54:58 UTC
Confirmed.

Seems like the overwrite dialog is not able to get that information from the file since it's being provided by an ioslave rather than living in the filesystem directly.