Project

General

Profile

Bug #4602

misleading error regarding host name when creating a host

Added by Alissa Bonas over 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When trying to create a new host, try to input a name , something like "host1".
Click 'submit'.
The system automatically adds a period (.) after "host1", so the name becomes "host1.",
and it displays this error: "must not include periods and is invalid"

1. If the system adds the period by itself, it should not fail as a wrong input.
2. It's not clear from user's point of view how to fix it if the system adds the period by itself. (and why this character is added anyway)
If a domain is needed, it should be clear from a message/tooltip that fqdn is expected as part of host name.
3. What means "and is invalid" - what else is wrong?

Please clarify the error message/make this flow more user friendly.
thank you


Related issues

Related to Foreman - Bug #4680: Regression: Hosts with no domain cannot be created when Unattended=falseClosed2014-03-17
Is duplicate of Foreman - Bug #5834: Hosts: "." in the name is invalid - user is told this but the UI adds one anyway.Closed2014-05-20

History

#1 Updated by Dominic Cleal over 5 years ago

  • Category set to Host creation

Do you have unattended in config/settings.yaml set to true or false?

#2 Updated by Alissa Bonas over 5 years ago

it's set to true:
:unattended: true

#3 Updated by Oscar Ferrer over 5 years ago

The same happens to me in one customer. By I have :unattended: set to false.

#4 Updated by Oscar Ferrer over 5 years ago

Sorry. I meant 'But I have :unattended: set to false'

#5 Updated by Greg Sutcliffe over 5 years ago

  • Related to Bug #4680: Regression: Hosts with no domain cannot be created when Unattended=false added

#6 Updated by Greg Sutcliffe over 5 years ago

Oscar, I've created http://projects.theforeman.org/issues/4680 for your issue as it's not quite the same as this one.

#7 Updated by Oscar Ferrer over 5 years ago

Big Thanks. This solves both issues for me.

#8 Updated by Dominic Cleal about 5 years ago

  • Is duplicate of Bug #5834: Hosts: "." in the name is invalid - user is told this but the UI adds one anyway. added

#9 Updated by Dominic Cleal about 5 years ago

The misleading error message has been fixed in #5834, so it no longer adds a period and then complains about it being there. However I think your point about "is invalid" is erm, valid, so will leave this open. The requirement for an FQDN and/or domain should be clearer, particularly as the domain is on another tab.

Also available in: Atom PDF