Bug 1952962

Summary: Canceling a job for a content host redirects to a new page with "{"statusText":"OK"}"
Product: Red Hat Satellite Reporter: Kaushik Sajjan Agarwal <kagarwal>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.9.0CC: aruzicka, lstejska, pcreech
Target Milestone: 6.10.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_remote_execution-4.5.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:10:44 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 Kaushik Sajjan Agarwal 2021-04-23 16:20:29 UTC
Description of problem:

Canceling a job for a content host redirects to a new page with "{"statusText":"OK"}"

Version-Release number of selected component (if applicable):

Satellite 6.8    <<-- CU reported the BUG on this version.
Satellite 6.9

How reproducible:

Always

Steps to Reproduce:
1. Create a rex job against a host or multiple hosts. Ex.: while : ; do find /var > /dev/null ; done
2. While executing, click on the hostname of any server from the bottom table and then click on the 'Cancel Job' button.

Actual results:

 - Clicking on the "Cancel Job" button redirects you to a new webpage with "{"statusText":"OK"}" text on the webpage. 

 - One has to click on the "Back <-" button on the browser to navigate back to the satellite UI.

 - Also, this is an inconsistent outcome as if a job is aborted then the user is not redirected to a new page and the same job page is visible which is more convinient.


Expected results:

 - Clicking on the "Cancel Job" button should keep you on the same task/job page as it does when clicked on the "Abort Job" button.

Additional info:

 - When a job is canceled from the main job page instead of clicking on the particular hostname and then canceling the job, the user is kept on the same page which is expected.

 - When the CHROME browser is used, only "{"statusText":"OK"}" text is visible on the webpage after canceling a job. Whereas when the FIREFOX browser is used multiple tabs are visible like JSON, RAW Data, Headers.

Comment 2 Peter Ondrejka 2021-08-16 12:42:46 UTC
Verified on Satellite 6.10 snap 13, job can be cancelled without an unexpected redirect

Comment 5 errata-xmlrpc 2021-11-16 14:10:44 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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702