Bug 1952962 - Canceling a job for a content host redirects to a new page with "{"statusText":"OK"}"
Summary: Canceling a job for a content host redirects to a new page with "{"statusText...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.9.0
Hardware: All
OS: All
medium
medium
Target Milestone: 6.10.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-23 16:20 UTC by Kaushik Sajjan Agarwal
Modified: 2021-11-16 14:10 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-foreman_remote_execution-4.5.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:10:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32675 0 Normal New Canceling a job for a content host redirects to a new page with "{"statusText":"OK"}" 2021-05-31 14:22:32 UTC
Red Hat Knowledge Base (Solution) 5992401 0 None None None 2021-04-23 16:36:06 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:50 UTC

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


Note You need to log in before you can comment on or make changes to this bug.