Bug 37770 - Minus in hostname should be valid
Minus in hostname should be valid
Product: UCS@school
Classification: Unclassified
Component: Ucsschool-lib
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Florian Best
Sönke Schwardt-Krummrich
Depends on: 36034 37802
  Show dependency treegraph
Reported: 2015-02-11 09:31 CET by Florian Best
Modified: 2015-02-27 15:18 CET (History)
0 users

See Also:
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:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-02-11 09:31:59 CET
+++ This bug was initially created as a clone of Bug #36034 +++

Found at #2014092921000445:

ucs-school-lib/python/models/attributes.py overrides the valid syntax for hostnames:

regex = re.compile('^[a-zA-Z0-9](([a-zA-Z0-9_]*)([a-zA-Z0-9]$))?$')

This is wrong! "-" in hostnames is also valid.

This leads to unseen erros if a new school dc contains a "-" and the install wizard is used. It just fails without any menaingful error message.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2015-02-25 16:38:33 CET
OK: code change
OK: functional check
OK: XML changelog (fixed)
OK: changelog
OK: package built
tested with ucs-school-lib (5.0.49-8) unstable; urgency=medium
tested with ucs-school-import (10.0.25-1) unstable; urgency=medium
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2015-02-27 15:18:33 CET
UCS@school 3.2 R2 v3 has been released:

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