ufw

binascii.Error: Odd-length string

Bug #1881779 reported by Jerry Onthoa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ufw
Expired
Undecided
Unassigned

Bug Description

I have roughly 10k - 16k rules. All of sudden when I try to dump the rules with the following command I recieve the following error:

$ sudo ufw status numbered
Traceback (most recent call last):
  File "/usr/sbin/ufw", line 147, in <module>
    res = ui.do_action(pr.action, "", "", pr.force)
  File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 663, in do_action
    res = self.get_status(False, True)
  File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 260, in get_status
    out = self.backend.get_status(verbose, show_count)
  File "/usr/lib/python3/dist-packages/ufw/backend_iptables.py", line 419, in get_status
    comment_str = " # %s" % r.get_comment()
  File "/usr/lib/python3/dist-packages/ufw/common.py", line 372, in get_comment
    return ufw.util.hex_decode(self.comment)
  File "/usr/lib/python3/dist-packages/ufw/util.py", line 1078, in hex_decode
    return binascii.unhexlify(h).decode('utf-8')
binascii.Error: Odd-length string
$

My Version:

$ ufw version
ufw 0.36
Copyright 2008-2015 Canonical Ltd.

Running Ubuntu bionic 18.04 LTS

Thanks,

Jerry

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Sorry that I only just saw this now. Are you still seeing this problem?

Changed in ufw:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ufw because there has been no activity for 60 days.]

Changed in ufw:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.