Univention Bugzilla – Attachment 8172 Details for
Bug 24828
Anlegen eines Networks:Network Objekts mit IPv4-Adresse und Netzmaske die größer als 32 ist erzeugt Traceback
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
24828.patch (text/plain), 1.40 KB, created by
Florian Best
on 2016-10-31 12:19:19 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-10-31 12:19:19 CET
Size:
1.40 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >index b18f29c..d85abee 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >@@ -183,7 +183,10 @@ class object(univention.admin.handlers.simpleLdap): > module = module > > def stepIp(self): >- network = ipaddr.IPNetwork(self['network'] + '/' + self['netmask']) >+ try: >+ network = ipaddr.IPNetwork(self['network'] + '/' + self['netmask']) >+ except ValueError as exc: >+ raise univention.admin.uexceptions.valueError(str(exc)) > if self['nextIp']: > # nextIP is already set: > # - check range for actual ip >@@ -258,8 +261,11 @@ def _ldap_modlist(self): > next_ip_changed = False > > if self.hasChanged('ipRange'): >- network = ipaddr.IPNetwork(self['network'] + '/' + self['netmask']) >- currentIp = ipaddr.IPAddress(self['nextIp']) >+ try: >+ network = ipaddr.IPNetwork(self['network'] + '/' + self['netmask']) >+ ipaddr.IPAddress(self['nextIp']) >+ except ValueError as exc: >+ raise univention.admin.uexceptions.valueError(str(exc)) > if self['ipRange']: > self.sort_ipranges() > self['nextIp'] = self['ipRange'][0][0]
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 24828
: 8172