Bug 454163 - Importing GPG keys with non-ASCII userid fails
Importing GPG keys with non-ASCII userid fails
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-05 15:18 EDT by Ville Skyttä
Modified: 2014-01-21 18:03 EST (History)
5 users (show)

See Also:
Fixed In Version: 3.2.17-2.fc9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-23 22:11:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ville Skyttä 2008-07-05 15:18:35 EDT
yum-3.2.16-2.fc9.noarch fails to import my GPG key due to Unicode decode error:

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID a0adfbdf
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 241, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 193, in main
    base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 366, in doTransaction
    if self.gpgsigcheck(downloadpkgs) != 0:
  File "/usr/share/yum-cli/cli.py", line 466, in gpgsigcheck
    self.getKeyForPackage(po, lambda x, y, z: self.userconfirm())
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 2671, in
getKeyForPackage
    self.logger.critical(_('Importing GPG key 0x%s "%s" from %s') % (hexkeyid,
userid, keyurl.replace("file://","")))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal
not in range(128)

The userid in my key is "Ville Skyttä <ville.skytta@iki.fi>".

A repo with which this can be reproduced is at http://cachalot.mine.nu/9/, repo
file http://cachalot.mine.nu/cachalot.repo
Comment 1 James Antill 2008-07-05 18:40:30 EDT
 Can you try putting to_unicode() around the userid variable above?
Comment 2 Ville Skyttä 2008-07-06 03:28:10 EDT
Yes, that fixes it.
Comment 3 James Antill 2008-07-07 00:38:39 EDT
 Ok, it should be fixed in 3.2.17 then when that comes out (probably this week).
Comment 4 Fedora Update System 2008-07-09 10:51:19 EDT
yum-3.2.17-1.fc9 has been submitted as an update for Fedora 9
Comment 5 Fedora Update System 2008-07-09 17:50:54 EDT
yum-3.2.17-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-6301
Comment 6 Fedora Update System 2008-07-22 13:28:25 EDT
yum-3.2.17-2.fc8 has been submitted as an update for Fedora 8
Comment 7 Fedora Update System 2008-07-23 22:11:10 EDT
yum-3.2.17-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Fedora Update System 2008-08-07 13:16:54 EDT
yum-3.2.18-1.fc8 has been submitted as an update for Fedora 8
Comment 9 Fedora Update System 2008-08-27 14:02:29 EDT
yum-3.2.19-1.fc8 has been submitted as an update for Fedora 8.
http://admin.fedoraproject.org/updates/yum-3.2.19-1.fc8
Comment 10 Fedora Update System 2008-09-10 02:58:52 EDT
yum-3.2.19-3.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.