Bug 485565 - Users KCM fails to apply image avatar if image filename contains backtick or tab.
Summary: Users KCM fails to apply image avatar if image filename contains backtick or ...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: 6.0.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://kojipkgs.fedoraproject.org//p...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 22:30 UTC by Roke Julian Lockhart Beedell
Modified: 2024-07-24 18:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
4wy78uwh: performance-


Attachments
Relevant avatar. (530.76 KB, image/png)
2024-04-14 22:30 UTC, Roke Julian Lockhart Beedell
Details
Screenshot of the failure error message banner in the KCM GUI. (89.55 KB, image/png)
2024-04-14 22:30 UTC, Roke Julian Lockhart Beedell
Details
An example avatar with a filename which causes the issue. (530.76 KB, image/png)
2024-06-10 13:44 UTC, Roke Julian Lockhart Beedell
Details
Reproduction screencast. (869.70 KB, video/webm)
2024-06-10 13:48 UTC, Roke Julian Lockhart Beedell
Details

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