keepassx don't copy the password into buffer by pressing Ctrl+C

Bug #477891 reported by Pavlo Kundirenko
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KeePassX
Fix Released
Undecided
Unassigned
keepassx (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: keepassx

When I try to copy-paste password from keepassx, it isn't copied into buffer with Ctrl+C.
It can be copied only with RMB-"Copy password".

Instead the password copying it copies the currently selected cell value. See attached picture.

Revision history for this message
Pavlo Kundirenko (farfurkis) wrote :
Revision history for this message
Pavlo Kundirenko (farfurkis) wrote :

Some additional information about enviroment:

farfurkis@farfurkis-desktop:~$ uname -a
Linux farfurkis-desktop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux

farfurkis@farfurkis-desktop:~$ apt-cache policy keepassx
keepassx:
  Installed: 0.4.1-1

Revision history for this message
Victor Trac (victor-trac) wrote :

I've always experienced the bug as the original author posted, but now it is worse. I'm not sure what has changed on my system - perhaps some X or Gnome updates.

KeePassX now refuses to copy into the system clipboard completely, whether I right-click->copy, double-click on the password field, or ctrl+c. It is using *some* clipboard, because when I copy text from KeePassX, I can paste back into KeePassX (into another field or into the search field), but pasting into something outside of KeePassX results in nothing. I can also copy text originating from outside of KeePassX and paste into KeePassX.

Ubuntu 9.10 and KeePass 0.4.1-1.

Revision history for this message
Victor Trac (victor-trac) wrote :

I had to reboot for a kernel update and a new graphics card driver kernel module, and now keepassx seems to work as normal. I retract my bug report.

Revision history for this message
Reinhard Tartler (siretart) wrote :

seems like an upstream issue to me

Revision history for this message
Tom Metro (tmetro+ubuntu) wrote :

I observed this problem (same as comment #3), but after a reboot it went away and stayed away for a while (weeks). I figured the explanation of comment #4 was probably why.

I just noticed it has occurred. I re-enabled the PPA that had been disabled on my 9.04 to 9.10 upgrade, and upgraded to 0.4.3, but the problem is still there. It might get resolved by a reboot again, but if this is reoccurring, there's clearly something broken.

Reinhard Tartler wrote:
> seems like an upstream issue to me

I don't see any reports upstream. Seems more likely that there is a specific interaction with Ubuntu. If an OS reboot temporarily fixes the problem, but an application restart does not, chances are there is something in the Ubuntu/GNOME environment that is ceasing to work after a period of time.

I see an old Debian bug that appears to describe the same symptoms and offers a patch:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414171

I'm guessing this occurrence has a slightly different cause, otherwise it wouldn't work some of the time.

I don't see any upstream bugs so I created one:
https://sourceforge.net/tracker/?func=detail&aid=3024974&group_id=166631&atid=839779

Revision history for this message
Tom Metro (tmetro+ubuntu) wrote :

I wrote:
> It might get resolved by a reboot again...

Confirmed. After a reboot, the clipboard functionality of keepassx was restored.

So what is changing during a session to break it?

Revision history for this message
Pavlo Kundirenko (farfurkis) wrote :

I found the solution:
To fix the bug you must simply move the USA keyboard layout to the top of layouts list and that's all

http://ubuntuforums.org/showthread.php?t=1502077
Russian: http://forum.ubuntu.ru/index.php?topic=88286.msg713051#msg713051

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for posting this bug.

As per your comments this bug is fixed. Marking as such.

Changed in keepassx (Ubuntu):
status: New → Fix Released
Changed in keepassx:
status: New → Fix Released
Revision history for this message
Tom Metro (tmetro+ubuntu) wrote :

Farfurkis wrote:
> To fix the bug you must simply move the USA keyboard layout to the top of layouts list...

This does not resolve the problem for me. The USA keyboard layout was already at the top of the list.

Besides, that thread describes a problem with shortcut keystrokes. This bug is more fundamental to keepassx and impacts the functionality of the content menus as well. Once the bug is triggered, there is no way to get data out of keepassx, short of a reboot, or using the auto-type feature.

 -Tom

Revision history for this message
JohnWashington (ubuntu-johnwash) wrote :

I have been sent a .kdb file and so I have just installed Keepass(x) on Ubuntu (Gnome) 10.10 and
am having the same problem. I have a USA keyboard driver. I have used Keepass in the past
(when I used to use Kubuntu) so I don't think it's due to unfamiliarity with the program.

Please note, Farfurkis, that when you write "...to fix the bug" what you really mean is
"here is a useful workaround". It doesn't FIX the bug at all, and it's a very annoying bug
indeed. But thank you for the workaround, which I will go and try.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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