-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Copy and Pasting Password into MatLab Installer gives "wrong password" error #1118
Description
As stated in the title, when copying the password from KeePasXC and pasting it into the password field of the MatLab installer, the installer gives an "incorrect password" error. However, if I am to copy the password from KeePassXC, and paste it into TextEdit, then copy it from TextEdit and paste from there in to MatLab, everything works fine.
In my mind, both of these copy commands should be copying exactly the same sequence of characters, and then pasting the exact same sequence of characters, so pasting the password into a temporary location should do nothing. Not to mention that pasting it to a temporary location is pretty insecure, as it sits there displayed in plaintext until you delete it!
It is remotely possible that this is an issue with the MatLab installer, but I find that unlikely.
Expected Behavior
- Copy password from KeePassXC (Using cmd-c, the right click menu, or even editing the entry, clicking the eye to show the password, and copying it from there)
- Paste password in to MatLab installer.
- MatLab installer accepts the password as correct and continues
Current Behavior
- Copy password from KeePassXC
- Paste password in to MatLab installer.
- MatLab reports incorrect password
Possible Solution
In my mind, as possible reason for this is: whatever KeePassXC is putting into the mac clipboard with its copy command is not the same as what is put into the clipboard when the user copies from TextEdit. Maybe some characters use a different encoding scheme, or there is junk data at the beginning or the end of the copied data. Can the mac clipboard be viewed byte by byte?
A (bad) workaround is this:
- Copy password from KeePassXC
- Paste password into TextEdit (It's now shown in plaintext!)
- Copy password from TextEdit
- Paste password into MatLab
Steps to Reproduce (for bugs)
- Copy password from KeePassXC
- Paste password in to MatLab installer.
- Observe that MatLab reports incorrect password
Context
This is the most basic usage of KeePassXC. Save passwords, copy them in to password fields. It really shouldn't ever have an error doing this.
Debug Info
KeePassXC - Version 2.2.0
Revision: caa49a8
Libraries:
- Qt 5.9.0
- libgcrypt 1.7.7
Operating system: macOS Sierra (10.12)
CPU architecture: x86_64
Kernel: darwin 16.7.0
Enabled extensions:
- KeePassHTTP
- Auto-Type
- YubiKey