Bug 36274

Summary: Hostname with uppercase allowed when creating new school
Product: UCS@school Reporter: Timo Denissen <denissen>
Component: UMC - InstallerAssignee: Florian Best <best>
Status: CLOSED WORKSFORME QA Contact: Sönke Schwardt-Krummrich <schwardt>
Severity: normal    
Priority: P5 CC: gohmann
Version: UCS@school 3.2 R2   
Target Milestone: UCS@school 4.0 Errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=37816
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Timo Denissen univentionstaff 2014-10-22 17:25:47 CEST
When creating a new school, the hostname for the new school server can begin with an uppercase character (eg. School1). When trying to install a server with the very same name (eg. School1.example.com) the installation wizard complains that the FQDN must be lowercase (eg. school1.example.com).

When creating a new school and the hostname begins with an uppercase character, it should be shown as warning.
Comment 1 Florian Best univentionstaff 2015-02-04 14:52:13 CET
The bug is against the wrong component, what really was meant is the following:
If you open the UCS@school installer to install a "Administrative server" you have to enter the hostname of the "Name of educational school server *".
This allows a normal regex of a hostname (regExp: '^[a-zA-Z0-9](([a-zA-Z0-9-]*)([a-zA-Z0-9]$))?$',).

The problem is that univention-system-setup in the appliance mode does not allow a valid hostname to be entered when installing a UCS system:
is_hostname.RE = re.compile("^[a-z]([a-z0-9-]*[a-z0-9])*$")

I am closing this bug as WORKSFORME then.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-02-13 14:13:53 CET
Is there a valid reason, that USS does not accept uppercase characters as hostname? If not, did you open a bug agaist USS? If yes, it should be fixed in UCS@school.
Is the join successful, if a camel case name as e.g. administrative server has been specified and the host is installed with a merely lowercase host name?
Comment 3 Florian Best univentionstaff 2015-02-16 17:38:53 CET
(In reply to Sönke Schwardt-Krummrich from comment #2)
> Is there a valid reason, that USS does not accept uppercase characters as
> hostname?
I don't see any valid reason, opened Bug #37816.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-02-19 16:09:24 CET
> I am closing this bug as WORKSFORME then.

VERIFIED
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2015-02-27 15:19:40 CET
UCS@school 4.0 v2 has been released:
http://docs.univention.de/release-notes-ucsschool-4.0v2-de.html

If this error occurs again, please use "Clone This Bug".