Bug 1774770

Summary: After formatting a Gemalto/SCP03 token, ESC shows incorrect Issuer, Issued To, Status, and Token ID details
Product: Red Hat Enterprise Linux 8 Reporter: Sneha Veeranki <sveerank>
Component: escAssignee: Jack Magne <jmagne>
Status: CLOSED ERRATA QA Contact: PKI QE <bugzilla-pkiqe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: aakkiang, mharmsen
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: esc-1.1.2-12.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:38:42 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:

Description Sneha Veeranki 2019-11-20 22:01:37 UTC
Description of problem:
After formatting a Gemalto/SCP03 token, ESC shows incorrect Issuer, Issued To, Status, and Token ID details.

Version-Release number of selected component (if applicable):
esc-1.1.2-11.el8

How reproducible:
Always

Steps to Reproduce:
1. Insert a formatted Gemalto/SCP03 card.

Actual results:
The Issuer, Issued To, Status, and Token ID details displayed by ESC are as below:
Issuer: unknown
Issued To: unknown
Status: uninitialized
Token ID: blank-token

Expected results:
The Issuer, Issued To, Status, and Token ID details should be displayed correctly.

Additional info:

Comment 1 Sneha Veeranki 2020-02-27 21:58:33 UTC
*** Bug 1735077 has been marked as a duplicate of this bug. ***

Comment 2 Jack Magne 2020-05-31 02:55:40 UTC
This issue will largely be addressed in the next build : esc-1.1.2-12.el8


The main problem with the gemalto token, was the fact that esc was failing to properly calculate the CUID value.
This has been addressed. This was the cause of the confused status display for the token.

Now that the CUID is correctly calculated, the values in the status line will be mostly correct with one caveat.

When a token operation such as Format or Enroll is done, the token status display won't be entirely correct immediately.

The IssuedTo field is likely to be the value assumed before the operation has completed.  I suspect that after performing the operation,
the calls made to get the list of certs on the toke are returning old data immediately after the operation.

If the token is remove and re-inserted. the IssuedTo field should be correct. We can open another future bug for this, or I may try to figure this part out
with the remaining time for this release.

Comment 8 errata-xmlrpc 2020-11-04 03:38:42 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 (esc bug fix and enhancement update), 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-2020:4757