Bug #4602
openmisleading error regarding host name when creating a host
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
Updated by Dominic Cleal over 10 years ago
- Category set to Host creation
Do you have unattended in config/settings.yaml set to true or false?
Updated by Oscar Ferrer over 10 years ago
The same happens to me in one customer. By I have :unattended: set to false.
Updated by Oscar Ferrer over 10 years ago
Sorry. I meant 'But I have :unattended: set to false'
Updated by Greg Sutcliffe over 10 years ago
- Related to Bug #4680: Regression: Hosts with no domain cannot be created when Unattended=false added
Updated by Greg Sutcliffe over 10 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.
Updated by Oscar Ferrer over 10 years ago
Big Thanks. This solves both issues for me.
Updated by Dominic Cleal over 10 years ago
- Is duplicate of Bug #5834: Hosts: "." in the name is invalid - user is told this but the UI adds one anyway. added
Updated by Dominic Cleal over 10 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.