Bug 506868

Summary: Renaming a Connection adds '%00' to Certificate Paths
Product: [Applications] systemsettings Reporter: Benjamin <benjamin.herbst>
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: benjamin.herbst, jgrulich, kdedev, paulos+kde
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:
Attachments: Shows that after adding "(Testedit)" into the connection name "%00" gets added to Paths

Description Benjamin 2025-07-10 14:54:07 UTC
Created attachment 183128 [details]
Shows that after adding "(Testedit)" into the connection name "%00" gets added to Paths

SUMMARY
When you have a Connection in the "Wi-Fi & Networking" settings (wired or wireless) where "802.1x Security" using TLS is configured (Identity, UserCert, CAcert, PrivateKey & PW) and you rename the Connection (change  "Connection name") then a "%00" is added to all three Certificate Paths (UserCert, CAcert, PrivateKey).
This leads to an authentication failure, the next time the connection is used.

STEPS TO REPRODUCE
1. Configure a Wired or Wireless connection that uses 802.1x Security (with TLS) to authenticate to your Network
2. Rename the Connection name
3. Reload the settings pane by switching to another connection and back to the renamed one.
4. Check the Cert Paths

OBSERVED RESULT
A "%00" is added to the end of the Certificate Paths after renaming the connection

EXPECTED RESULT
The Certificate Paths unchanged.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
I've attached a few step-by-step screenshots.
Comment 1 Pavel Valach 2025-09-12 08:16:08 UTC
Confirming that this is still happening in 6.4.4.

From my observations, in KDE Control Center -> Wi-Fi & Networking, upon opening the connection and switching to the "802.1x Security", a "whitespace" gets appended onto the end of the certificate paths - all of them.
So when the user changes anything, and does not notice the added "whitespace", the settings then get corrupted by %00 (which I presume is a NULL character, 0x00).

A very annoying bug.


Operating System: Fedora Linux 42 (Kinoite)
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Comment 2 TraceyC 2025-10-09 17:25:11 UTC
I'm not able to reproduce this with git-master, so it looks like it's fixed in 6.5.0. Can I ask you to test this again when your machines update?

I'll set this to NEEDSINFO so we'll be reminded in 15 days.
Comment 3 Pavel Valach 2025-10-11 09:43:40 UTC
In 6.4.5 it is still happening,
but in kde6-unstable, I also cannot reproduce the issue anymore. So I will patiently wait for the update and report back then.
Comment 4 TraceyC 2025-10-14 15:56:06 UTC
Thanks for the update. It sounds like you've confirmed that it's fixed on your system as well in 6.5.0. I'll mark this resolved for now. If you do still see the bug with 6.5.0, please reopen the report. Thanks!