[SRU] ufw ValueError when supplying dotted-decimal netmask
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw (Ubuntu) |
Fix Released
|
Undecided
|
Jamie Strandboge | ||
Hardy |
Fix Released
|
Undecided
|
Jamie Strandboge |
Bug Description
Binary package hint: ufw
ufw crashed when I typed "sudo ufw allow to 192.168.
It seems that I made a mistake in the syntax.
The answer was :
Traceback (most recent call last):
File "/usr/sbin/ufw", line 1362, in <module>
(action, rule, type, dryrun) = process_args()
File "/usr/sbin/ufw", line 178, in process_args
if valid_address(
File "/usr/sbin/ufw", line 304, in valid_address
if int(net[1]) < 0 or int(net[1]) > 128:
ValueError: invalid literal for int() with base 10: '255.255.255.0'
ProblemType: Crash
Architecture: i386
Date: Wed Apr 30 19:55:18 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/sbin/ufw
InterpreterPath: /usr/bin/python2.5
NonfreeKernelMo
Package: ufw 0.16.2
PackageArchitec
ProcCmdline: /usr/bin/python /usr/sbin/ufw allow to 192.168.
ProcEnviron:
PATH=/
LANG=fr_FR.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/sbin/ufw', 'allow', 'to', '192.168.
SourcePackage: ufw
Title: ufw crashed with ValueError in valid_address()
Uname: Linux 2.6.24-16-generic i686
UserGroups:
Changed in ufw: | |
assignee: | nobody → jdstrand |
status: | New → In Progress |
Thank you for using Ubuntu and taking the time to report a bug. Currently ufw supports /INTEGER notation and does not support dotted decimal netmasks. This will change in a future release of Ubuntu. That said, I will submit a patch for a StableReleaseUpdate which will prevent the python traceback.