Bug 52919 - IPv6 support in /etc/hosts broken
IPv6 support in /etc/hosts broken
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-base-files
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 4.4-7-errata
Assigned To: Jürn Brodersen
Florian Best
:
Depends on:
Blocks: 49060
  Show dependency treegraph
 
Reported: 2021-03-16 11:19 CET by Jürn Brodersen
Modified: 2021-03-24 15:58 CET (History)
1 user (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:
best: Patch_Available+


Attachments
Proposed patch (1.89 KB, patch)
2021-03-16 11:19 CET, Jürn Brodersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2021-03-16 11:19:44 CET
Created attachment 10645 [details]
Proposed patch

IPv6 support in /etc/hosts broken

None is not comparable with empty string:


"""
Multifile: /etc/hosts
Traceback (most recent call last):
  File "<stdin>", line 41, in <module>
  TypeError: '<' not supported between instances of 'str' and 'NoneType'
"""
Comment 1 Florian Best univentionstaff 2021-03-16 11:54:38 CET
patch looks good to me. You can apply it from my view.
Comment 2 Jürn Brodersen univentionstaff 2021-03-16 15:40:25 CET
(In reply to Florian Best from comment #1)
> patch looks good to me. You can apply it from my view.

Thanks! commited

[5.0-0 9b723c12da] Bug #52919: fix traceback in hosts.d/00-base
Comment 3 Jürn Brodersen univentionstaff 2021-03-17 11:49:16 CET
Backported to 4.4-7 errata

[4.4-7 dfe04dac8c] Bug #52919: fix traceback in hosts.d/00-base with python3
[4.4-7 4ee48aac14] Bug #52919: changelog
[4.4-7 e667d7f7c0] Bug #52919: yaml
[4.4-7 a3c9e98d32] Bug #52919: yaml

Package: univention-base-files
Version: 8.0.1-2A~4.4.0.202103171130
Branch: ucs_4.4-0
Scope: errata4.4-7
Comment 4 Florian Best univentionstaff 2021-03-23 16:01:06 CET
OK: UCS 4.4
ucr set interfaces/eth0/ipv6/default/address=2001:470:71e6:0027::3 interfaces/eth0/ipv6/default/prefix=48 interfaces/eth0/ipv6/default/hosts=ipv6host interfaces/eth0/host=ipv4host
OK: UCS 5.0
OK: YAML