key-request-find generates NumberFormatException when the key ID is null.
pki -d ~/.dogtag/pki-tomcat/ca/alias -n caadmin -c Secret123 key-request-find ----------------- 5 entries matched ----------------- Request ID: 0x1 NumberFormatException: For input string: "null"
The key ID might be null because of failed archival requests, but the code should handle null value more gracefully. Here's the full stack trace:
java.lang.NumberFormatException: For input string: "null" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.math.BigInteger.<init>(BigInteger.java:338) at java.math.BigInteger.<init>(BigInteger.java:476) at com.netscape.certsrv.dbs.keydb.KeyId.<init>(KeyId.java:48) at com.netscape.certsrv.key.KeyRequestInfo.getKeyId(KeyRequestInfo.java:59) at com.netscape.cmstools.key.KeyCLI.printKeyRequestInfo(KeyCLI.java:100) at com.netscape.cmstools.key.KeyRequestFindCLI.execute(KeyRequestFindCLI.java:142) at com.netscape.cmstools.cli.CLI.execute(CLI.java:265) at com.netscape.cmstools.key.KeyCLI.execute(KeyCLI.java:86) at com.netscape.cmstools.cli.ProxyCLI.execute(ProxyCLI.java:119) at com.netscape.cmstools.cli.CLI.execute(CLI.java:265) at com.netscape.cmstools.cli.MainCLI.execute(MainCLI.java:346) at com.netscape.cmstools.cli.MainCLI.main(MainCLI.java:358)
Proposed milestone: 10.2 July
master: 6bb64604f3422e1c4f72a14707bfb6ffbeb23458
Metadata Update from @edewata: - Issue assigned to edewata - Issue set to the milestone: 10.2 - 06/14 (June)
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/1608
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.