keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
21.24k stars 1.47k forks source link

Auto-type extended ASCII misses some characters in KDE/Qt applications #8976

Open jensMF opened 1 year ago

jensMF commented 1 year ago

Overview

When I use Auto-Type for passwords with extended ASCII characters in qTerminal, Konsole, Kate, Kwrite, KeePassXC, Kile and probaly other KDE/Qt applications, but also in VScodium and LibreOffice Calc, there are characters missing. When I use it with GNOME Terminal, Geany, moserial, firefox, or TexStudio and probably others it works correct.

Steps to Reproduce

  1. generate a password with (enough) extended ASCII characters (I have a password length of 78, but with only extended ASCII 16 or 30 should be enough I guess)
  2. open one of the affected programs (may be the problem exists even with other display-managers, I don't know, otherwise use plasma/KDE)
  3. auto-type the password (with delay or without does not matter)

Expected Behavior

The password is correctly typed with all characters and in correct order.

Actual Behavior

The password is typed, but some characters are missing.

Context

The missing characters are not always the same. It differs depending on the delay and wether global auto-type is used or CTRL+SHIFT+V is used. But there are always missing characters, even with DELAY=500. It is possible that the same character is successfully typed before or after the position where it was not typed.

KeePassXC - Version 2.7.4 Revision: 63b2394

Qt 5.15.7

Betriebssystem: Manjaro Linux CPU-Architektur: x86_64 Kernel: linux 6.0.15-1-MANJARO

Operating System: Linux Desktop Env: KDE/plasmashell Windowing System: X11

droidmonkey commented 1 year ago

Can you type them in by hand successfully? If it works in gnome then this is very unlikely to be our bug.

jensMF commented 1 year ago

Yes, I can of course enter them successfully by hand. Even KeePassXC can type them successfully. But sometimes it misses one and sometimes not. I wrote that it works in GNOME Terminal, not in gnome. I did not test it in gnome because I have not installed gnome. I just have the "GNOME Terminal" application installed and there it works. It seems to me, that it works with GTK applications but not with Qt applications (on my system).

jensMF commented 1 year ago

I tested an 8 character password with only extended ASCII and that works more reliable. It is successful every second time and when I wait for some time before I retry.

droidmonkey commented 1 year ago

If it's application/framework dependent then it's most likely not us. Are you using qwerty/us layout?

jensMF commented 1 year ago

No, I use qwerz/de layout.

codekandis commented 9 months ago

I can definitely confirm the issue. It occured the first time too long ago to remember the exact KPXC version I first experienced it. I missed to open an issue.