Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 590843 Details for
Bug 830679
[Patch] Make rhui-manager allows valid RHUI entitlement certificates w/ extension other than ".pem"
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Make rhui.common.cert_utils.entitlements_in_cert catching X509.X509Error, etc.
0001-Make-entitlements_in_cert-catching-X509.X509Error-et.patch (text/plain), 1.02 KB, created by
Satoru SATOH
on 2012-06-11 08:17:26 UTC
(
hide
)
Description:
Make rhui.common.cert_utils.entitlements_in_cert catching X509.X509Error, etc.
Filename:
MIME Type:
Creator:
Satoru SATOH
Created:
2012-06-11 08:17:26 UTC
Size:
1.02 KB
patch
obsolete
>From a739dda340e733e4eaf8c59651fa5aa3fb1f8851 Mon Sep 17 00:00:00 2001 >From: Satoru SATOH <ssato@redhat.com> >Date: Mon, 11 Jun 2012 16:52:57 +0900 >Subject: [PATCH 1/3] Make entitlements_in_cert catching X509.X509Error, etc. > during reading given X509 certificate > >--- > src/rhui/common/cert_utils.py | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/src/rhui/common/cert_utils.py b/src/rhui/common/cert_utils.py >index 981adc0..f74ca9c 100644 >--- a/src/rhui/common/cert_utils.py >+++ b/src/rhui/common/cert_utils.py >@@ -47,7 +47,14 @@ def entitlements_in_cert(cert_filename): > ''' > > cert = Certificate() >- cert.read(cert_filename) >+ >+ try: >+ cert.read(cert_filename) >+ except Exception, e: >+ # TBD: handle some specific exceptions such as X509.X509Error here. >+ LOG.warning("Could not load entitlements data from " + cert_filename) >+ return [] >+ > extensions = cert.extensions() > > # Stores a mapping of product number to entitlement object since multiple >-- >1.7.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 830679
: 590843 |
590844
|
590845
|
590852