Bug 489442

Summary: Sidebar wrongly shows image files in an SFTP folder as having zero size
Product: [Applications] gwenview Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.05.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2024-06-29 16:06:34 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When viewing an image file in an SFTP folder using Gwenview, its size is wrongly shown as '0B'.

STEPS TO REPRODUCE
1. Open an SFTP folder in Dolphin 
2. Select a PNG file in this folder and open it in Gwenview
3. Open the sidebar to see the file info (the tab with the 'i' symbol)

OBSERVED RESULT
File size is shown as 0B

EXPECTED RESULT
Either show actual size, or show 'unknown'

SOFTWARE/OS VERSIONS
gwenview 24.05.1
kio 6.3.0
kio-extras 24.05.1
libssh 0.10.6
openssh 9.7p1
Qt 6.7.2

ADDITIONAL INFORMATION
A. Dolphin's tooltip shows the file size correctly
B. Gwenview's sidebar shows the correct size for local files