Bug 485565

Summary: Users KCM fails to apply image avatar if image filename contains backtick or tab.
Product: [Applications] systemsettings Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: kcm_usersAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: uhhadd
Priority: NOR Flags: 4wy78uwh: performance-
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://kojipkgs.fedoraproject.org//packages/plasma-systemsettings/6.0.4/1.fc40/x86_64/plasma-systemsettings-6.0.4-1.fc40.x86_64.rpm
See Also: https://bugs.kde.org/show_bug.cgi?id=487471
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Relevant avatar.
Screenshot of the failure error message banner in the KCM GUI.
An example avatar with a filename which causes the issue.
Reproduction screencast.

Description Roke Julian Lockhart Beedell 2024-04-14 22:30:12 UTC
Created attachment 168524 [details]
Relevant avatar.

STEPS TO REPRODUCE
Attempt to choose an avatar for a user via `kcm_users`.

OBSERVED RESULT
> Failed to resize image: writing to temp file failed

EXPECTED RESULT
It should be applied.

SOFTWARE/OS VERSIONS
Operating System: cpe:/o:fedoraproject:fedora:40
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.5-301.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
The image I've tested this with is attached.
Comment 1 Roke Julian Lockhart Beedell 2024-04-14 22:30:40 UTC
Created attachment 168525 [details]
Screenshot of the failure error message banner in the KCM GUI.
Comment 2 Roke Julian Lockhart Beedell 2024-04-29 12:26:03 UTC
(In reply to Roke Julian Lockhart Beedell from comment #1)
I've ascertained what the problem is. It's caused by having a backtick (`) or tab (	) in the path to the file. Try placing a JPEG with the most normal name possible (image.jpg) in a directory with solely one of those characters. It reproducibly triggers this.
Comment 3 Roke Julian Lockhart Beedell 2024-06-10 13:44:15 UTC
Created attachment 170338 [details]
An example avatar with a filename which causes the issue.
Comment 4 Roke Julian Lockhart Beedell 2024-06-10 13:48:14 UTC
Created attachment 170339 [details]
Reproduction screencast.
Comment 5 Roke Julian Lockhart Beedell 2024-07-24 18:09:57 UTC
I expect that https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4455 fixes this?