Univention Bugzilla – Bug 37770
Minus in hostname should be valid
Last modified: 2015-02-27 15:18:33 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.
OK: code change
OK: functional check
OK: XML changelog (fixed)
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
UCS@school 3.2 R2 v3 has been released:
If this error occurs again, please use "Clone This Bug".