Dropping a key into the list of keys fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| software-properties (Ubuntu) |
Medium
|
Michael Vogt | ||
| Trusty |
Medium
|
Unassigned |
Bug Description
[Impact]
Dragging a key into Software & Updates' authentication tab does nothing.
[Test Case]
1. Download a PGP key for a Debian repository (for example, the VideoLAN
team's key: download.
2. Open "Software & Updates" from the Dash, then select the Authentication
tab.
3. Open the PGP key file you downloaded with a text editor.
4. Select all of the text (Ctrl+A) and drag it into the list in the
Authentication tab of Software & Updates.
If the bug is fixed: admin authentication is requested. Authenticate,
and then the key should be listed.
If not: nothing happens, or an error is displayed.
[Regression Potential]
This feature isn't working, so I suppose there is not regression potential.
[Original Report]
When I drag a key text/file and drop it into the list of keys in the "Authentication" list, it fails silently (sometimes an apport bug report appears), throwing an exception:
Traceback (most recent call last):
File "/usr/lib/
keydata = selection.
AttributeError: 'SelectionData' object has no attribute 'data'
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: software-
ProcVersionSign
Uname: Linux 3.13.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Oct 20 14:01:10 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-10-13 (6 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitec
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Michael Vogt: Approve on 2014-11-21
-
Diff: 28 lines (+3/-3)2 files modifiedsoftwareproperties/SoftwareProperties.py (+2/-2)
softwareproperties/gtk/SoftwarePropertiesGtk.py (+1/-1)
- Brian Murray: Approve on 2015-07-08
- Michael Vogt: Approve on 2015-07-07
-
Diff: 47 lines (+6/-5)2 files modifiedsoftwareproperties/SoftwareProperties.py (+2/-4)
softwareproperties/gtk/SoftwarePropertiesGtk.py (+4/-1)
Bruno Nova (brunonova) wrote : | #1 |
summary: |
- Dropping a key file into the list of keys fails + Dropping a key into the list of keys fails |
description: | updated |
Bruno Nova (brunonova) wrote : | #2 |
Bruno Nova (brunonova) wrote : | #3 |
Oh, before that there's another error:
Traceback (most recent call last):
File "/home/
if not self.add_
File "/home/
tmp.
AttributeError: 'bytes' object has no attribute 'encode'
Just replace:
tmp.
with:
tmp.
because keydata is already "bytes" at that point.
Bruno Nova (brunonova) wrote : | #4 |
Ok, I think I got it. I'm going to link a branch that solves this soon.
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Michael Vogt (mvo) |
Changed in software-properties (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in software-properties (Ubuntu Trusty): | |
status: | New → In Progress |
importance: | Undecided → Medium |
description: | updated |
Hello Bruno, or anyone else affected,
Accepted software-properties into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in software-properties (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed |
Bruno Nova (brunonova) wrote : | #6 |
I updated software-
This fixes this bug!
tags: |
added: verification-done removed: verification-needed |
Bruno Nova (brunonova) wrote : | #7 |
However, this update doesn't fix the other bug (#1381050) unfortunately, so this shouldn't be uploaded to trusty-updates!
Mathew Hodson (mhodson) wrote : | #8 |
Hello Bruno, or anyone else affected,
Accepted software-properties into trusty-proposed. The package is available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
tags: |
added: verification-needed removed: verification-done |
Bruno Nova (brunonova) wrote : | #9 |
I updated the software-properties packages to 0.92.37.5 from trusty-proposed.
The bug is fixed!
I opened my own PGP key (I already have the VLC's key) in gedit and dragged everything into the authentication list. I was asked for polkit authorization and then the key was successfully added.
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package software-properties - 0.92.37.5
---------------
software-properties (0.92.37.5) trusty-proposed; urgency=medium
* cloudarchive: Enable support for the Liberty Ubuntu Cloud Archive on
14.04 (LP: #1472586).
* Revert SRU changes for "fix importing keys from path with special chars"
due to verification-failed in trusty-proposed.
-- Corey Bryant <email address hidden> Wed, 02 Sep 2015 12:31:11 -0400
Changed in software-properties (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
'SelectionData' has indeed no 'data' attribute. But it has a 'get_data()' method. data.strip( )" should be renamed to "selection. get_data( ).strip( )" in softwarepropert ies/gtk/ SoftwarePropert iesGtk. py (there are 2 occurrences).
So, "selection.
Don't know if the bug exists in the KDE version.
But that doesn't fix everything. It will then throw these errors:
gpg: no writable keyring found: eof
gpg: error reading `/tmp/tmpcszfsj3q': general error
gpg: import from `/tmp/tmpcszfsj3q' failed: general error