Univention Bugzilla – Attachment 10036 Details for
Bug 49489
Can't create host record 'master-42-140.42.schule.edu' in zone '42.schule.edu'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dns_label_rfc_1123.patch
dns_label_rfc_1123.patch (text/plain), 1.16 KB, created by
Arvid Requate
on 2019-05-20 15:41:44 CEST
(
hide
)
Description:
dns_label_rfc_1123.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2019-05-20 15:41:44 CEST
Size:
1.16 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/syntax.py b/management/univention-directory-manager-modules/modules/univention/admin/syntax.py >index 4327776846..92fd796588 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/syntax.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/syntax.py >@@ -1883,7 +1883,7 @@ class dnsHostname(dnsName): > valueError: A host name or FQDN must start and end with a letter or number. In between additionally dashes, dots and underscores are allowed. > """ > >- LABEL = re.compile(r'^(?![0-9]+$|[_-])[a-zA-Z0-9_-]{1,63}(?<![_-])$') >+ LABEL = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}(?<![_-])$') > NUMERIC = re.compile(r'^[0-9.]+$') > > @classmethod >@@ -1922,7 +1922,7 @@ class dnsName_umlauts(simple): > > min_length = 1 > max_length = 63 >- regex = re.compile(r"^(?![0-9]+$|[_-])[\w_-]{1,63}(?<![_-])$", re.UNICODE) >+ regex = re.compile(r"^[\w][\w_-]{0,63}(?<![_-])$", re.UNICODE) > error_message = _( > "A host name or FQDN must start and end with a letter or number. In between additionally dashes, dots " > "and underscores are allowed."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49489
: 10036