Bug 1534767

Summary: javadoc for org.mozilla.jss.pkix.cms.SignedData.getSignerInfos() is incorrect
Product: Red Hat Enterprise Linux 7 Reporter: Matthew Harmsen <mharmsen>
Component: jssAssignee: Alex Scheel <ascheel>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: aakkiang, ascheel, cfu, edewata, elio.maldonado.batiz, extras-qa, gkapoor, kwright, lmiksik, mharmsen, nkinder, rcritten, rmeggins
Target Milestone: rcKeywords: TestCaseProvided
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: jss-4.4.6-1.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1534765 Environment:
Last Closed: 2019-08-06 13:06:56 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: 1534765    
Bug Blocks:    

Description Matthew Harmsen 2018-01-15 22:21:33 UTC
+++ This bug was initially created as a clone of Bug #1534765 +++

I think the javadoc for the getSignerInfos() method is wrong.  It says it returns "a SET of org.mozilla.jss.pkcs7.SignerInfo" but I think it is a SET of org.mozilla.jss.pkix.cms.SignerInfo.


Reproducible: Always

Steps to Reproduce:
Below isn't really complete but you should get the point...

import org.mozilla.jss.pkix.cms.ContentInfo;
import org.mozilla.jss.pkix.cms.SignedData;
//import org.mozilla.jss.pkix.cms.SignerInfo;
import org.mozilla.jss.pkcs7.SignerInfo;

ContentInfo ci = (ContentInfo) ASN1Util.decode(ContentInfo.getTemplate(), binaryResponse);
SignedData response = (SignedData) ci.getInterpretedContent();
SignerInfo sinfo = (SignerInfo) response.getSignerInfos().elementAt(0);
Actual Results:  
org.mozilla.jss.pkix.cms.SignerInfo cannot be cast to org.mozilla.jss.pkcs7.SignerInfo

Comment 4 Matthew Harmsen 2018-06-27 01:06:18 UTC
Moved to RHEL 7.7 due to lack of development resource time.

Comment 6 Alex Scheel 2018-10-15 17:08:02 UTC
This is fixed upstream. When the next JSS release is made we can port this to RHEL as appropriate.

Comment 9 Geetika Kapoor 2019-05-06 15:40:27 UTC
Hi Alex,

Could you please add test steps for this bug.

Thanks

Comment 11 Geetika Kapoor 2019-05-08 19:31:21 UTC
Verified the steps mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1534767#c10.
I have done a basic sanity of steps mentioned above. Marking the bug "verified".

Comment 13 errata-xmlrpc 2019-08-06 13:06:56 UTC
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-2019:2219