Bug 2021331

Summary: Improve error message for Token lifetime (hours) on the "Register Host" screen
Product: Red Hat Satellite Reporter: Dave Carmichael <dcarmich>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Sam Bible <sbible>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.9.6CC: lstejska
Target Milestone: UnspecifiedKeywords: EasyFix, Triaged
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: 2024-05-29 17:27:02 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 Dave Carmichael 2021-11-08 21:21:56 UTC
Description of problem:


I think the error message "Please select a value that is no less than 1." should be replaced with "Please enter a number greater than zero." for the "Register Host" screen Token lifetime (hours) field. 


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


How reproducible:

Easy, always.


Steps to Reproduce:
1. From the Satellite UI navigate to Hosts, All Hosts, click "Register Host".
2. Choose the Operating System and enter 0 in the "Token lifetime (hours)" field. Enter the activation key and press "Generate command"

Actual results:

Please select a value that is no less than 1.


Expected results:

Please enter a number greater than 0.


Additional info:

Comment 1 Leos Stejskal 2022-01-12 10:01:18 UTC
Created redmine issue https://projects.theforeman.org/issues/34247 from this bug

Comment 2 Leos Stejskal 2022-01-12 10:49:40 UTC
This have been already fixed, testing on Sat 7.0 snap 4 message is now "Token life time value must be between 1 and 999999 hours."

Comment 3 Stephen Wadeley 2022-02-08 11:23:53 UTC
Hello


On Sat 7 snap 8
7.0.0-8.0

I confirm, empty or 0 for token lifetime displays:


Token life time value must be between 1 and 999999 hours

I checked 6.10.3 snap 1 as well.


Thank you

Comment 4 Brad Buckingham 2024-05-29 17:27:02 UTC
Closing as this was VERIFIED on Satellite 6.10.