Bug 445989

Summary: Create template from image does not work if name of template contains characters forbidden by file system
Product: [Applications] krita Reporter: tweetychrip
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.4.8   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tweetychrip 2021-11-23 18:45:44 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I tried naming a template with the ":" character and it let me click the "OK" button but the template didn't show up in the New File list. I checked my app data and the file was named everything before the ":" character.

STEPS TO REPRODUCE
1. Name template a forbidden character
2. 
3. 

OBSERVED RESULT
Template does not appear in new file list.

EXPECTED RESULT
Template appears in new file list.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2025-05-28 09:05:40 UTC
Sorry for the late reply. It's unfortunate that we made the decision to save template filess using the un-escaped name as the filename back in, oh, I guess 2002. So I can confirm the issue, and it does need to be changed. However, given that the template system is such a mess, it's unlikely to happen soon...