Bug 2116399 - "Invalid field: Activation Keys" when opening the registration page
Summary: "Invalid field: Activation Keys" when opening the registration page
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-08 13:17 UTC by Evgeni Golov
Modified: 2023-03-13 13:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of the warning (118.55 KB, image/png)
2022-08-08 13:17 UTC, Evgeni Golov
no flags Details

Description Evgeni Golov 2022-08-08 13:17:45 UTC
Created attachment 1904286 [details]
screenshot of the warning

Description of problem:
When the user opens up https://satellite.example.com/hosts/register, the first thing they see is a big orange warning saying "Invalid field: Activation Keys" (see attached screenshot).

I think this is wrong for multiple reasons:
1. the user didn't enter any data yet, so there actually is nothing to validate
2. the AK field is on the "advanced" tab, which the user didn't even open yet
3. it magically disappears once the user selects a hostgroup (which has an AK defined)

No3 is actually funny, because you can create a HG with an invalid AK (just enter some garbage in the AK field) and this will clear the warning. But if you go to "advanced" you see that there is still no AK set as the registration dialog does validation and realizes this AK doesn't exist (the user can still click on generate, and the link created will not contain an AK).

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

How reproducible:
100

Steps to Reproduce:
1. go to https://satellite.example.com/hosts/register


Actual results:
See warning

Expected results:
Only see user-actionable things

Additional info:

Comment 1 Brad Buckingham 2022-08-11 14:26:25 UTC
Related bug 1992283.

Comment 2 Evgeni Golov 2022-08-11 14:28:23 UTC
(In reply to Brad Buckingham from comment #1)
> Related bug 1992283.

Indeed, somehow my search fu failed me on this one.


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