Bug 577021 - fedora-packager-setup crashes when ~/.fedora.cert contains garbage
Summary: fedora-packager-setup crashes when ~/.fedora.cert contains garbage
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-packager
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-25 21:19 UTC by Sandro
Modified: 2011-06-27 15:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-27 15:17:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sandro 2010-03-25 21:19:21 UTC
Description of problem:

fedora-packager-setup fails with traceback when ~/.fedora.cert contains garbage.

Version-Release number of selected component (if applicable):

fedora-packager-0.4.2-1.fc12

How reproducible:

Always.

Steps to Reproduce:
1. Put something arbitrary text in ~/.fedora.cert
2. run fedora-packager-setup
3.
  
Actual results:

Setting up Fedora packager environment
Traceback (most recent call last):
  File "/usr/bin/fedora-packager-setup", line 140, in <module>
    main()
  File "/usr/bin/fedora-packager-setup", line 114, in main
    if fedora_cert.certificate_expired():
  File "/usr/lib/python2.6/site-packages/fedora_cert/__init__.py", line 66, in certificate_expired
    my_cert = _open_cert()
  File "/usr/lib/python2.6/site-packages/fedora_cert/__init__.py", line 36, in _open_cert
    my_cert = crypto.load_certificate(crypto.FILETYPE_PEM, raw_cert)
OpenSSL.crypto.Error: [('PEM routines', 'PEM_read_bio', 'no start line')]

Expected results:

Succesful setup of Fedora packager environment

Additional info:

This happened to me by accident as explained in bug 573941 comment 14. But even putting a simple line (echo "I'm not a certificate" > ~/.fedora.cert) in the file will have fedora-packager-setup crash.

Comment 1 Bug Zapper 2010-11-03 18:36:42 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Sandro 2010-11-03 20:12:26 UTC
Can still reproduce in Fedora 13 (fedora-packager-0.5.1.4-5) using an empty .fedora.cert. Changing version to Fedora 13.

Comment 3 Bug Zapper 2011-06-02 15:55:24 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Bug Zapper 2011-06-27 15:17:39 UTC
Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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