KeePass2: copy username or copy password does not work as expected in applications

Bug #1010289 reported by Viacheslav Kurenyshev
68
This bug affects 17 people
Affects Status Importance Assigned to Milestone
keepass2 (Debian)
Confirmed
Unknown
keepass2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 12.04 64bit.
Keepass was installed from default repositories (ver 2.18) and after upgraded to PPA version 2.19. The same behaviour.

I opened a keepass DB and clicked "Copy User Name" or "Copy Password" on an item.
I could past it in some tricky way in different applications.

Gnome-terminal:
* SHIFT+Insert did not work.
* Right button of mouse did not work as 'paste' actions was not allowed.
* CTRL+SHIFT+V did not work.
but
* CTRL+SHIFT+Insert worked.

I use clipboard manager Parcelitte and I see that copied information is there. If I selected it there (CTRL+ALT+H), then I am able to paste using SHIFT+Insert it in gnome-terminal.

Terminator:
* SHIFT+Insert did not work.
but
* 'Past' action of Right button of mouse worked.
* CTRL+SHIFT+V worked.
* CTRL+SHIFT+Insert worked.

Parcelitte sees that copied information. If I selected it there (CTRL+ALT+H), then I am able to paste using SHIFT+Insert it in Terminator.

Firefox:
* Right button of mouse did not work as 'paste' actions was not allowed.
but
* SHIFT+Insert worked.

Parcelitte sees that copied information. If I selected it there (CTRL+ALT+H), then I am able to paste using 'Past' action of Right button of mouse in Firefox.

Gedit:
* Right button of mouse did not work as 'paste' actions was not allowed.
but
* SHIFT+Insert worked.

Parcelitte sees that copied information. If I selected it there (CTRL+ALT+H), then I am able to paste using 'Past' action of Right button of mouse in Gedit.

After I found out that problem I installed mono-complete, xsel and xdotool packages. It did not help.

I thought that it is because of "Gnome-terminal paste keyboard shortcut does not work - menu not shown" bug https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/630383, but this bug was fixed and it happened in Firefox and Gedit.

Thanks for help.

summary: - KeePass2: copy username or copy password does not as expected in
+ KeePass2: copy username or copy password does not work as expected in
applications
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in keepass2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Maarten Kossen (mpkossen) wrote :

I can confirm the behavious as described in the original bug report on Ubuntu 12.04.1 (clean install).

Also, thanks for the suggestion on CTRL+SHIFT+INS :)

Revision history for this message
Julian Taylor (jtaylor) wrote :

keepass 2.20 available in ppa:jtaylor/keepass now uses the external program xsel for copy/paste
it should work with more programs like this, install the xsel package to enable it.

if no issues turn up, that version will likely be officially backported to quantal and precise.

Revision history for this message
Viacheslav Kurenyshev (slavic) wrote :

Currently, our team members who use Windows Keepass they use 2.18 version.
If I would start using 2.20 on Ubuntu, would it raise any issues with password databases? Windows 2.18 and Ubuntu 2.20 are compatible or we need to use the same version?
Thanks.

Revision history for this message
Julian Taylor (jtaylor) wrote :

2.20 and 2.18 are compatible. But to be safe it is always advisable to make a backup before upgrades.

Revision history for this message
unksi (unksi) wrote :

Happens on Ubuntu 12.10 x64 as well.

Revision history for this message
Gregg Stock (gregg-damagecontrolusa) wrote :

apt-get install xsel

worked for me.

Revision history for this message
unksi (unksi) wrote :

It works currently for me on 13.04. Closing keepass, removing xsel and starting keepass again did not introduce this issue. I have 2.21 and KDE (was running Unity on 12.10, can't remember which version of keepass).

Revision history for this message
Julian Taylor (jtaylor) wrote :

note that using xsel can cause other issues, see bug 1116512

Revision history for this message
Joshua Trees (jtrees) wrote :

Wouldn't it make sense to simply make xsel a dependency for the the keepass2 package?

Revision history for this message
Julian Taylor (jtaylor) wrote :

it is recommended by the package which means it is installed by default unless you configured your apt to not install recommends.

Revision history for this message
MartenVijn (info-martenvijn) wrote :

+1 for making xsel a dependency, I costed my a couple hours to fix user expectations. (and keepass 2.25 on 14.4).

Thanks, Marten

--- control.org 2014-09-02 08:01:07.720800123 +0200
+++ control 2014-09-02 08:01:30.544799747 +0200
@@ -4,7 +4,7 @@
 Maintainer: Ubuntu Developers <email address hidden>
 Original-Maintainer: Joe Nahmias <email address hidden>
 Installed-Size: 72
-Depends: libc6 (>= 2.11), libx11-6
+Depends: libc6 (>= 2.11), libx11-6, xsel
 Section: x11
 Priority: optional
 Homepage: http://www.vergenet.net/~conrad/software/xsel/

Revision history for this message
Oliver (ok23) wrote :

I would also like to see a dependency added. The copy/paste problem still exists with Keepass 2.25, but xsel cures this.

Btw, could someone please update the repository? At the beginning of May 2016, Keepass 2.25 is outdated, current version is 2.32, as seen on the homepage of the author...

Thanks
hman

Revision history for this message
Oliver (ok23) wrote :

I have to update my posting:
Having xsel DID cure the problem. But in the meantime, it has re-appeared!

keepass2 is currently 2.25+dfsg-1ubuntu0.1 and xsel is 1.2.0-2

2.25 was already outdated when I wrote my last remark in May. Seven months later, well... Current would be 2.34.

Running on Linux Mint 17.3 x64 Cinnamon.

Thanks

Revision history for this message
Oliver (ok23) wrote :

Somehow keypass2 disappeared from Ubuntu's repositories. The last trace of it is in 13.10, all newer versions of Ubuntu completely lack Keypass2 ! Also, package information seems to have been erased, as my Synaptic no longer mentions that I have keypass2 installed, but it's still there (2.25).

What has happened?

Revision history for this message
David Lechner (dlech) wrote :

You probably have the `universe` component turned off in your package sources. I don't see this is relevant to this bug (copying and pasting) though.

Revision history for this message
Oliver (ok23) wrote :

You are right. A typo in /etc/apt/sources.list.d/additional-repositories.list, but it somehow did not produce any error, but it's fixed now. Sorry for being off-topic.

On-topic is that the outdated Keepass 2.25 (that's all that Ubuntu uses at the moment) still does not copy & paste. It did work for a while after I installed xsel, but the bug has re-appeared. Also, Ctrl-Shift-Insert does NOT work. xsel is 1.2.0-2.

Revision history for this message
Colan Schwartz (colan) wrote :

See bug #1379877 for the paste failing only on Java applications.

Changed in keepass2 (Debian):
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.