ufw --dry-run throws a python exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw (Ubuntu) |
Fix Released
|
Low
|
Jamie Strandboge |
Bug Description
The traceback:
leon@polly:~$ ufw --dry-run
Invalid syntax
Traceback (most recent call last):
File "/usr/sbin/ufw", line 71, in <module>
pr = ufw.frontend.
File "/usr/lib/
pr = p.parse_
File "/usr/lib/
tmp = args[0].lower()
IndexError: list index out of range
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ufw 0.30.1-2ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.94-0ubuntu1
Architecture: amd64
Date: Sun Mar 4 14:36:52 2012
EcryptfsInUse: Yes
InstallationMedia:
PackageArchitec
SourcePackage: ufw
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in ufw (Ubuntu): | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in ufw (Ubuntu): | |
status: | Triaged → In Progress |
Thanks for reporting this issue.
I get the same traceback when attempting to run "ufw --dry-run" on Ubuntu Precise. I guess the reason is that it ries to run an option from the commandline arguments which should be run as a dry-run. However, it tries to run a non-existing argument since it wasn't specified. It should probably check whether an argument is specified rather than simply crashing.