Bug 495328 - Can't write special characters in ksshaskpass passphrase prompts
Summary: Can't write special characters in ksshaskpass passphrase prompts
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-25 03:20 UTC by leoperbo
Modified: 2024-10-25 03:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leoperbo 2024-10-25 03:20:44 UTC
SUMMARY

Can't write special characters in ksshaskpass passphrase prompts.

STEPS TO REPRODUCE
1. Setup a SSH connection with a pubkey secured by passphrase containing an accent or diaresis (á, é, í, ö, ú, À, è...).
2. Prepare a script like this:

#!/bin/bash
ssh -fN -L 5901:localhost:5901 user@host &&
krdc vnc://user@localhost:5901 &&
lsof -ti:5901 | xargs kill -9

3. Launch the script from a .desktop file with "Terminal=false" parameter.
4. Write the passphrase in the prompt (ksshaskpass) and try (it won't work).

OBSERVED RESULT
The prompt appears again asking for passphrase.
On the second attempt, write the passphrase but, before confirm, show (unhide) the passphrase... You'll notice that characters written with an accent or a diaresis appears without them (i.e. you wrote "á", but the prompt reads "a").

EXPECTED RESULT
I can write passphrases with accents and diaresis in ksshaskpass passphrase prompts, so my script continues.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0 
Qt Version: 6.7.2

ADDITIONAL INFORMATION

If you show the passphrase before writing it, accents and diaresis are correctly written, then you can confirm and the scripts continues.

Any character with accent or diaresis written with the passphrase hided, will be "rendered" without accent or diaresis. Any character with accent or diaresis written when showing the passphrase, will be "rendered" ok.