Bug 53685 - ValueError: '' does not appear to be an IPv4 or IPv6 address
ValueError: '' does not appear to be an IPv4 or IPv6 address
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal with 2 votes (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-20 11:14 CEST by Christian Castens
Modified: 2023-03-29 12:41 CEST (History)
4 users (show)

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: 2023032121000221, 2022062721000153, 2022021721000438, 2021081721000116, 2021081721000125, 2021112321000652, 2021112321000661, 2023031621000301, 2023031621000311
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2021-08-20 11:14:59 CEST
Version: 5.0-0 errata68

Remark: Sigh .. why is it always ....

Error:
Internal server error during "udm/put (computers/computer)".
Request: udm/put (computers/computer)

  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 442, in _thread
    module.modify(properties)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 647, in modify
    self._map_properties(obj, ldap_object)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 513, in _map_properties
    obj[property_name] = property_obj.syntax.parse(value)
  File "%PY3%/univention/admin/handlers/__init__.py", line 3300, in __setitem__
    if not ips or ip_address(u'%s' % (ip1,)) not in subnet:
  File "/usr/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address

Role: domaincontroller_master
Comment 1 Maximilian Janßen univentionstaff 2021-11-24 10:19:02 CET
Version: 5.0-0 errata158
Comment 2 it 2022-05-02 11:40:16 CEST
Today we get the same error-message when we try to change the IP-Adress of a client and press "Speichern" (Save)

When leaving the field "Netzwerk" (network) empty, the saving is possible. 

UCS-Version: 5.0-1 errata292
UMC-Version: 12.0.12-22A~5.0.0.202204041241
Comment 3 it 2022-05-02 11:51:22 CEST
Interner Server-Fehler in "udm/put (computers/computer)".
Request: udm/put (computers/computer)

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/python3/dist-packages/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 442, in _thread
    module.modify(properties)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 647, in modify
    self._map_properties(obj, ldap_object)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 513, in _map_properties
    obj[property_name] = property_obj.syntax.parse(value)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 3321, in __setitem__
    if not ips or ip_address(u'%s' % (ip1,)) not in subnet:
  File "/usr/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address
Comment 4 it 2022-05-03 10:25:28 CEST
A way to reproduce the error:

- Create a client with 2 MAC-adresses with a network, ip-adress, DNS-Zones, DHCP
- Change the network and try to save
- The error should occur

Workaround:

- Delete one MAC-adress with ip-adress, DNS-Zones, DHCP 
  AND also change the network before saving
- Saving should be possible
- Now changing of the network is possible (with only one MAC-adress)
- Adding a second MAC-adress (ip-adress, DNS-Zones, DHCP) after changing the network
Comment 5 Mika Westphal univentionstaff 2023-03-17 10:08:15 CET
Version: 5.0-3 errata614

Error:
Internal server error during "udm/put (computers/computer)".
Request: udm/put (computers/computer)

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 449, in _thread
    module.modify(properties)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 640, in modify
    self._map_properties(obj, ldap_object)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 506, in _map_properties
    obj[property_name] = property_obj.syntax.parse(value)
  File "%PY3%/univention/admin/handlers/__init__.py", line 3336, in __setitem__
    if not ips or ip_address(u'%s' % (ip1,)) not in subnet:
  File "/usr/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address

Role: domaincontroller_master