#7115 ipa-pki-retrieve-key: failure results in crash report
Closed: fixed Opened by ftweedal.

If ipa-pki-retrieve-key fails for some reason (which may be
a "legitimate" reason like, e.g., the server it is attempting to contact
being offline), the program terminates with uncaught exception,
resulting in crash report.

The program should not terminate via unhandled exception, so that
we avoid this situation.


Metadata Update from @ftweedal:
- Issue assigned to ftweedal

Metadata Update from @ftweedal:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1478366

Fraser, could you please test this on a current master, too? We recently added a switch of the shebangs to "#!/bin/python3 -bb" until we release to Fedora and ipa-pki-retrieve-key is one the few remaining scripts I did not test, mostly because I was not sure how to work with it.

Please see if there are any python3 issues (I don't think there should be but one never knows) and report/fix them if you will :) Thanks!

@stlaz sure thing, I will test it with py3

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.6

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.1 (was: FreeIPA 4.6)

master:

  • 09f746f56823ec6120437ba625f0db9b5d704e3e ipa-pki-retrieve-key: ensure we do not crash

ipa-4-6:

  • f9074dcc9c025594d6961dcbb03805b9a20bb220 ipa-pki-retrieve-key: ensure we do not crash

Metadata Update from @stlaz:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata