Bug 1506710
| Summary: | JSS throws ObjectNotFoundException without message | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Matthew Harmsen <mharmsen> |
| Component: | jss | Assignee: | Endi Sukma Dewata <edewata> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | aakkiang, akahat, cfu, edewata, elio.maldonado.batiz, extras-qa, kwright, mharmsen, nkinder, rcritten, rmeggins |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | jss-4.4.0-10.el7 | Doc Type: | No Doc Update |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | 1506707 | Environment: | |
| Last Closed: | 2018-04-10 17:56:52 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: | |||
| Bug Depends On: | 1506707 | ||
| Bug Blocks: | |||
|
Description
Matthew Harmsen
2017-10-26 15:30:25 UTC
edewata fixed in master: * https://hg.mozilla.org/projects/jss/rev/19a0e2146a92 * https://hg.mozilla.org/projects/jss/rev/837c79476110 * https://hg.mozilla.org/projects/jss/rev/ca2c2fcfaf20 Hi Endi, For normal systems I'm able to see the error message. But for the HSM systems I'm not able to see any message. 1. On normal system # certutil -L -d /root/nssdb/ -n "CA" Database needs user init certutil: Could not find cert: CA : PR_FILE_NOT_FOUND_ERROR: File not found 2. On HSM System : # certutil -L -d /root/nssdb/ -n "NHSM6000-OCS:CA" -h nfast Enter Password or Pin for "NHSM6000-OCS": # Hi Amol, The certutil is an NSS tool which we didn't modify. The changes made in this bug are for JSS which can be exposed via PKI CLI. Normally, if the client cert nickname specified in the PKI CLI does not exist in client's database (e.g. ~/.dogtag/nssdb) the CLI will show an ObjectNotFoundException thrown by JSS. With these changes, the exception message will now show the missing cert's nickname: $ pki client-cert-show wrongcert ObjectNotFoundException: Certificate not found: wrongcert I tested this Bugzilla on the 10.5.1-5.el7 version. It works as expected. # pki -d /opt/pki/certdb/ -c Secret123 client-cert-show CA_AdminRj ObjectNotFoundException: Certificate not found: CA_AdminRj Verifying this bug. 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. https://access.redhat.com/errata/RHBA-2018:0958 |