Bug 879546
Summary: | Providing broken entitlement certificate leads to unhandled error in rhui-manager | ||
---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Vitaly Kuznetsov <vkuznets> |
Component: | Tools | Assignee: | James Slagle <jslagle> |
Status: | CLOSED ERRATA | QA Contact: | mkovacik |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 2.1 | CC: | asettle, juwu, tsanders, whayutin |
Target Milestone: | --- | ||
Target Release: | 2.1.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Uploading a broken certificate to rhui-manager returned an unhandled trace back error. This fix updates cert.py so rhui-manager displays a proper error message.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-27 17:00:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Vitaly Kuznetsov
2012-11-23 09:48:03 UTC
The traceback is no longer shown on the command line, and I added the follow message to the output for this error: "The given certificate appears malformed. See the log file for more information." cloude commit: 93e031fba753c09bf8e306e268b45bbd53fa3357 [root@rhua ~]# rpm -q rh-rhui-tools rh-rhui-tools-2.1.15-1.el6_3.noarch [root@rhua ~]# mkdir -p `dirname /var/lib/rhui-testing-tools/8a85f98135a68e6b0135a692ab84073a.pem` && echo SUCCESS SUCCESS [root@rhua ~]# cat /var/lib/rhui-testing-tools/8a85f98135a68e6b0135a692ab84073a.pem | sed 's,a,b,' > /var/lib/rhui-testing-tools/8a85f98135a68e6b0135a692ab84073a.pem.broken && echo SUCCESS SUCCESS [root@rhua ~]# rhui-manager cert upload --cert /var/lib/rhui-testing-tools/8a85f98135a68e6b0135a692ab84073a.pem.broken The given certificate appears malformed. See the log file for more information. An unexpected error has occurred during the last operation. 140408666932992:error:0D07209B:asn1 encoding routines:ASN1_get_object:too long:asn1_lib.c:142: 140408666932992:error:0D068066:asn1 encoding routines:ASN1_CHECK_TLEN:bad object header:tasn_dec.c:1307: 140408666932992:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:660: 140408666932992:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:712: 140408666932992:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:752:Field=issuer, Type=X509_CINF 140408666932992:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:752:Field=cert_info, Type=X509 140408666932992:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_oth.c:83: Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0571.html |