Bug 1402906 - Incorrectly raised exception in rhn-custom-info
Summary: Incorrectly raised exception in rhn-custom-info
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 15:26 UTC by Lukáš Hellebrandt
Modified: 2018-04-09 15:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-09 15:25:36 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Lukáš Hellebrandt 2016-12-08 15:26:43 UTC
Description of problem:
BZ created based on info in bug 1386615. When using rhn-custom-info with no certificate in path specified by /etc/sysconfig/rhn/up2date in its sslCACert directive, an exception is raised about wrongly raised exception (raising a string rather than Exception object).

How reproducible:
Always

Steps to Reproduce:
1. rm $PATH_TO_CERT
2. rhn-custom-info -u admin -p pass -s https://${HOSTNAME}/rpc/api key val
Traceback (most recent call last):
  File "/usr/bin/rhn-custom-info", line 255, in <module>
    main()
  File "/usr/bin/rhn-custom-info", line 212, in main
    s = create_server_obj(url)
  File "/usr/bin/rhn-custom-info", line 81, in create_server_obj
    raise "could not find cert %s" % ca_cert
TypeError: exceptions must be old-style classes or derived from BaseException, not str

Actual results:
Exception about incorrectly raised exception

Expected results:
Exception about no cert found

Comment 2 Tomas Lestach 2018-04-09 15:25:36 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.


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