Bug 40472 - Minus in hostname should be valid
Minus in hostname should be valid
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on: 36034
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-20 13:33 CET by Stefan Gohmann
Modified: 2019-02-05 21:50 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2016-01-20 13:33:28 CET
I think we can change a hostname in the Jenkins setup.

+++ 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 2019-02-05 21:50:24 CET
This issue has been filled against UCS@school 3. The maintenance with
bug and security fixes for the last UCS@school version for UCS 3.x 
(→ UCS@school 3.2) has ended on Dec 31, 2016.

Customers still on UCS 3.x are encouraged to update to UCS 4.3 (or later). 
Please contact your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug"
or simply reopen the issue. In this case please provide detailed information on
how this issue is affecting you.