Menu

#2035 Autotype paste incorrect and inconsistent username

KeePass_2.x
closed
nobody
None
5
2021-03-30
2021-03-27
No

Problem: Auto-type (Ctrl+V) resulted in incorrect and inconsistent username
This problem occurs when using an email with "." or "+" symbols as a username.

Step to reproduce:
1. Create an entry with username "ABCDEFGHIJKL.+@." and password "a"
2. Press Ctrl+V to do the auto-type
3. Try step 2 for multiple times
4. Change the username by adding "M" after "L" then repeat step 2-3. Then delete "M" and try again. Try deleting and adding another characters multiple times.

Expected result: The username should be correct and same every time.
Actual result: The username was wrong at the symbols, and the symbols were changing. The result is here https://pastebin.com/vne7ceNu

Could be related: https://bugs.launchpad.net/ubuntu/+source/keepass2/+bug/801415

System information:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

$ uname -a
Linux desktop 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ setxkbmap -query
rules: evdev
model: pc105
layout: us,th,us
variant: ,,
options: grp:alt_shift_toggle,grp_led:scroll

$ apt list keepass2
keepass2/bionic,bionic,now 2.45+dfsg-1~ubuntu18.04~ppa1 all [installed]

PPA source: deb http://ppa.launchpad.net/jtaylor/keepass/ubuntu bionic main

If you need more information, please let me know.
Thank you!

Discussion

  • Paul

    Paul - 2021-03-28

    In Linux KeePass uses mono to perform the Auto-Type. If the keystrokes are wrong it will be a mono issue.

    Are the changed characters the Shifted version of the correct characters?
    Does it happen in all apps or just a browser?

    cheers, Paul

     
  • Korrawit Pruegsanusak

    Thank you for your reply, Paul

    Are the changed characters the Shifted version of the correct characters?

    Yes, but not direct SHIFTED.
    Let me remind the situation (see the above pastebin): the dot "." symbol was replaced with a double-quote; and a plus "+" symbol was replaced with an exclamation mark "!".
    The replacement characters were the shifted version but in another language keymap, in my case Thai Kedmanee keymap.

    Please see https://en.wikipedia.org/wiki/File:Thai_keyboard_layout.png and https://en.wikipedia.org/wiki/File:KB_United_States.svg simultaneously. This is my keyboard.

    You'll see that: the dot symbol in Thai Kedmanee is at the left side adjacent to the Enter key, in the shifted position. That button, in US QWERTY keymap, is the double-quote in the shifted position. This somehow makes the program swap them when auto-type.

    Also, the plus symbol in Thai Kedmanee is at the second button of the first row, in the shifted position. In the US QWERTY, that is the exclamation mark. So, these two swaps (dot vs. double-quote, and plus vs. exclamation) might be from the same cause.

    Does it happen in all apps or just a browser?

    Tested with the same system as the above, with gedit, LibreOffice Writer, and terminal: the problem happens in all apps, not just a browser.

    Note: using Copy Username (Ctrl+B) does not cause this problem.

     
  • Paul

    Paul - 2021-03-29

    It seems Auto-Type is using the US keyboard layout.

    Does changing the keyboard order help? https://sourceforge.net/p/keepass/discussion/329221/thread/080dff4c/#140d

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2021-03-29
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2021-03-29

    KeePass uses 'xdotool' for auto-type on Linux systems. There are problems with certain keyboard layouts; you can follow the bug reports here:
    https://github.com/jordansissel/xdotool/issues/97
    https://github.com/jordansissel/xdotool/issues/133
    https://github.com/jordansissel/xdotool/issues/150

    Thanks and best regards,
    Dominik

     
    • venday

      venday - 2021-03-29

      How long does it take to release the official version 2.48

       
      • Paul

        Paul - 2021-03-29

        "When it's ready" is always the answer to release date questions.

        cheers, Paul

         
  • Korrawit Pruegsanusak

    Thank you very much, Paul and Dominik!

    Note: I haven't tried changing the order of keyboard layout yet.

     

Log in to post a comment.

MongoDB Logo MongoDB