Bug 483436 - Incorrect display of file icons (thumbnails)
Summary: Incorrect display of file icons (thumbnails)
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: details mode (show other bugs)
Version: 24.02.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 12:41 UTC by bluelupo
Modified: 2024-03-21 08:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of folder view from dolphin (19.41 KB, image/png)
2024-03-13 12:41 UTC, bluelupo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bluelupo 2024-03-13 12:41:51 UTC
Created attachment 167095 [details]
Screenshot of folder view from dolphin

SUMMARY
***
The thumbnails are not displayed correctly in the Dolphin file manager (see attachment file).

The user “michael” is in the following groups:
$ id -a michael
uid=1000(michael) gid=1000(michael) Gruppen=1000(michael),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),30(dip),44(video),46(plugdev),50(staff),100(users),113(netdev),116(lpadmin),117(scanner),125(sambashare),129(vboxusers),5001(music),5002(photo),131(kvm),998(adbusers),997(docker)

In the screenshot you can see that the file “Z” belongs to the user root and the group “photo” has write permissions (permission 660). I can also change this because the user “michael” is in the “photo” group. Unfortunately, the lock symbol for the file “Z” is then displayed in Dolphin, which is definitely wrong. This error did not occur under Plasma5 and the thumbnails were displayed correctly, i.e. without the lock symbol.

As soon as the file permissions are 660 (see screenshot), the display in Dolphin is incorrect, as the user’s group permissions are presumably not taken into account.
***


STEPS TO REPRODUCE
1. start dolphin
2. look at the details mode

OBSERVED RESULT
lock symbol is displayed despite write access to the file

EXPECTED RESULT
correct display of thumbnails/icons if write permissions on the file allow it (group and user permissions)

SOFTWARE/OS VERSIONS
Distribution   : KDE neon 6.0
Kernel         : 6.5.0-25-generic
SystemD        : systemd 249 (249.11-0ubuntu3.12)
Plasma         : 6.0.0
Qt             : 5.15.12
Kwin X11       : 6.0.2
Kwin Wayland   : 6.0.2
Comment 1 bluelupo 2024-03-13 15:35:06 UTC
Distribution   : KDE neon 6.0
Kernel         : 6.5.0-25-generic
SystemD        : systemd 249 (249.11-0ubuntu3.12)
Plasma         : 6.0.2
Qt             : 6.6.2-1xneon
Kwin X11       : 6.0.2
Kwin Wayland   : 6.0.2
Comment 2 Méven 2024-03-17 10:20:06 UTC
Git commit a58005d0a4cb977b0311688536cd311ec0359c5b by Méven Car.
Committed on 17/03/2024 at 10:07.
Pushed by meven into branch 'master'.

KFileitem: Use internal permissions as best case scenario
Related: bug 477526

M  +3    -1    src/core/kfileitem.cpp

https://invent.kde.org/frameworks/kio/-/commit/a58005d0a4cb977b0311688536cd311ec0359c5b
Comment 3 Méven Car 2024-03-21 08:19:17 UTC
Git commit 8e622280d070df7824baffd684e866c085b56f64 by Méven Car, on behalf of Méven Car.
Committed on 21/03/2024 at 08:04.
Pushed by meven into branch 'master'.

KFileItem: when checking access use current user

Instead of the file owner

M  +14   -14   src/core/kfileitem.cpp

https://invent.kde.org/frameworks/kio/-/commit/8e622280d070df7824baffd684e866c085b56f64