Wrong sorting by Port in Report view

Bug #1837319 reported by Sebas on 2019-07-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Low
costales

Bug Description

When in the Report view, if I click the Port column, the list is sorted by port, but in a weird way. The ports are compared in as strings instead of integers. This means that port 123 will be sorted before port 22.

This is likely because in gufw.py:155, when creating the Gtk.ListStore, the port column is specified to have a "str" type. I think an "int" would make more sense. (Is there any case where the port can't be represented as an int?)

costales (costales) on 2019-07-26
Changed in gui-ufw:
status: New → In Progress
assignee: nobody → costales (costales)
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers