Bug 2215888

Summary: Red Hat Satellite Web UI losing data when creating hosts.
Product: Red Hat Satellite Reporter: yopatil <yopatil>
Component: Host FormAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.13.0CC: gisoni, lstejska, rlavi, sshtein
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
Target Release: Unused   
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: 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 yopatil@redhat.com 2023-06-19 10:24:15 UTC
Description of problem:
Red Hat Satellite Web UI is losing data when creating hosts.

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


How reproducible:

Nature: Red Hat Satellite should not lose data while provisioning.

Steps to reproduce:
   1.) Enter Host Data
   2.) Operating System page is OK, enter the password
   3.) Do *NOT* enter MAC Address for the interface, press the "Submit" Button
   4.) Error message: "Some of the interfaces are invalid. Please check the table below." (as expected)
   5.) Enter MAC, press OK
   6.) Check OS Tab, everything looks fine, press the "Submit" Button
   7.) "Media Selection" has changed from previously selected "Synced Content" to "All Media". "Media" is now empty. The satellite is complaining "can't be blank". Once entered "Password" field is also blank.

 Alternative steps to reproduce:
  3.) Add empty host parameter
  4.) Error message: "Name can't be blank" (as expected)
  5.) Remove the empty host parameter
  (other steps as above)


Actual results:
Satellite Web UI is losing data when creating hosts.

Expected results:
Selected "Media Selection" should not change, and "Media" should not be empty.