Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2054011 - Submit button on Edit page of a host will revert back to a invalid page on Satellite
Summary: Submit button on Edit page of a host will revert back to a invalid page on Sa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.12.0
Assignee: Oleh Fedorenko
QA Contact: Peter Dragun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-13 23:18 UTC by Manu Sunil
Modified: 2022-11-16 13:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:33:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34830 0 Normal New Submit button on Edit page of a host will revert back to a invalid page on Satellite 2022-04-27 18:56:02 UTC
Red Hat Issue Tracker SAT-8415 0 None None None 2022-08-19 10:11:38 UTC
Red Hat Issue Tracker SAT-9964 0 None None None 2022-08-19 10:11:40 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:33:44 UTC

Description Manu Sunil 2022-02-13 23:18:26 UTC
Description of problem:

- Clicking the submit option on the Host Edit page reverts to an invalid host page.

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

- satellite-7.0.0-0.5.beta.el7sat.noarch
- foreman-3.1.1.4-1.el7sat.noarch

How reproducible:

- Always

Steps to Reproduce:

1. Register a host to the Satellite

2. Access the client on the UI
 
   Satellite WebUI: Hosts --> All Hosts --> Select the Host --> Edit 

3. Make any change in the page and click Submit or simply click Submit button

Actual results:

- The action reverts to any invalid host page.

- The domain seems to be added to the hostname of the host again.

- The URL is generated as such.

  https://satellite.example.com/new/hosts/client.example.com.example.com#/Overview

Expected results:

- The submit action should revert back to the host page successfully.

Comment 1 Ondřej Ezr 2022-03-08 09:36:33 UTC
Created redmine issue https://projects.theforeman.org/issues/34572 from this bug

Comment 2 Bryan Kearney 2022-03-09 00:05:23 UTC
Upstream bug assigned to afeferku

Comment 3 Bryan Kearney 2022-03-09 00:05:25 UTC
Upstream bug assigned to afeferku

Comment 4 Bryan Kearney 2022-03-15 00:05:25 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34572 has been resolved.

Comment 9 tstrych 2022-04-21 13:25:40 UTC
FailedQA, 

with sat 6.11 snap 16, the root cause was removed, when the host is edited and submitted, the user is navigated back, and there is no longer problem with the double domain name. 

But, when the user edits the domain (in interfaces tab), the new UI navigation fails, take a look at the attached screenshot. User is navigated to correct host but with old domain name, so host doesn't exist anymore. 
The old UI navigates correctly to the host with just edited domain. 

Full example. 
New host UI is enabled in settings

Create a domain a.b.c.d, assign all locations and organizations
Create a domain e.f.g.h, assign all locations and organizations

Create a host with domain a.b.c.d. 
Edit the host -> interfaces -> domain and set to e.f.g.h
Submit

Actual result
Something went wrong,
ReferenceError: RedirectToEmptyHostPage is not defined
URL: https://<satellite>/new/hosts/<host>.a.b.c.d#/Overview -> doesn't exist  anymore

Expected result
URL: https://<satellite>/new/hosts/<host>.e.f.g.h#/Overview -> navigated correctly


The full example with New host UI disabled in settings is working correctly.

Comment 12 Oleh Fedorenko 2022-04-27 18:56:01 UTC
Created redmine issue https://projects.theforeman.org/issues/34830 from this bug

Comment 15 Bryan Kearney 2022-05-06 20:04:40 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34830 has been resolved.

Comment 16 Peter Dragun 2022-08-03 11:39:27 UTC
Verified on sat 6.12 snap 4.
Both new and old UI navigates correctly after updating the domain.

Comment 20 errata-xmlrpc 2022-11-16 13:33:25 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 (Important: Satellite 6.12 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-2022:8506


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