Bug#1034568: binascii.Error: Odd-length string when asking the status

2023-05-02 Thread Jamie Strandboge
On Tue, 02 May 2023, Marek Küthe wrote: > Hello, > > thank you for the answer. > > I must admit that I was a bit hasty in reporting this error. This error > occurred when I tried to automate my ufw firewall rules with ansible. > In doing so, I had unfortunately run several scripts which inserted

Bug#1034568: binascii.Error: Odd-length string when asking the status

2023-05-02 Thread Jamie Strandboge
On Mon, 01 May 2023, Jamie Strandboge wrote: > Thank you for the report. If you update hex_decode() in > /usr/lib/python3/dist-packages/ufw/util.py to use this: > > return binascii.unhexlify('%2s' % h).decode("utf-8") > > instead of: > > return binascii.unhexlify(h).decode("utf-8") > >

Bug#1034568: binascii.Error: Odd-length string when asking the status

2023-05-02 Thread Jamie Strandboge
On Tue, 02 May 2023, Jamie Strandboge wrote: > Don't worry about the above, I have a better mitigation to avoid tracing > back: > https://git.launchpad.net/ufw/commit/?id=a14ab9777cde6308724164f5c42d368d2a823b3a Sorry, this is the correct commit: https://git.launchpad.net/ufw/commit/?id=aa26a79dd

Bug#1034568: binascii.Error: Odd-length string when asking the status

2023-05-01 Thread Jamie Strandboge
Thank you for the report. If you update hex_decode() in /usr/lib/python3/dist-packages/ufw/util.py to use this: return binascii.unhexlify('%2s' % h).decode("utf-8") instead of: return binascii.unhexlify(h).decode("utf-8") Does it resolve the issue for you? -- Email: ja...@strandboge.c

Bug#1034568: binascii.Error: Odd-length string when asking the status

2023-04-18 Thread Marek Küthe
Package: ufw Version: 0.36-7.1 Severity: important Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? Adding a few rules: ufw route allow in on {{ item }} from fd00::/8 to fd00::/8 comment 'dnet' ufw route allow