Bug 1719702

Summary: cockpit: Overlapping getSubscriptionStatus and getSyspurposeStatus calls interfere
Product: Red Hat Enterprise Linux 8 Reporter: Marius Vollmer <mvollmer>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Jan Stavel <jstavel>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: csnyder, jhnidek, jsefler, jstavel
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:16:08 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 Marius Vollmer 2019-06-12 11:36:59 UTC
The code in subscription-manager/cockpit/ has two functions that compete for the same field of the client:

client.getSubscriptionStatus = function() {
    this.dfd = cockpit.defer();

    ...

    return this.dfd.promise();
};

client.getSyspurpose = function() {
    this.dfd = cockpit.defer();

    ....

    return this.dfd.promise();
};

If calls to these functions overlap (e.g., one of them is called while a previous call has not resolved its promise yet), they will use the wrong Deferred objects and some promises will never be resolved.

Comment 6 errata-xmlrpc 2019-11-05 22:16:08 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:3561