2018-06-04 17:41:41 |
Paulo Marcel Coelho Aragão |
bug |
|
|
added bug |
2018-06-09 20:06:31 |
Jamie Strandboge |
bug task added |
|
ufw |
|
2018-06-09 20:07:53 |
Jamie Strandboge |
ufw: status |
New |
In Progress |
|
2018-06-09 20:07:53 |
Jamie Strandboge |
ufw: assignee |
|
Jamie Strandboge (jdstrand) |
|
2018-06-09 20:08:23 |
Jamie Strandboge |
nominated for series |
|
Ubuntu Cosmic |
|
2018-06-09 20:08:23 |
Jamie Strandboge |
bug task added |
|
ufw (Ubuntu Cosmic) |
|
2018-06-09 20:08:23 |
Jamie Strandboge |
nominated for series |
|
Ubuntu Bionic |
|
2018-06-09 20:08:23 |
Jamie Strandboge |
bug task added |
|
ufw (Ubuntu Bionic) |
|
2018-06-09 20:08:31 |
Jamie Strandboge |
ufw (Ubuntu Bionic): status |
New |
Triaged |
|
2018-06-09 20:08:34 |
Jamie Strandboge |
ufw (Ubuntu Cosmic): status |
New |
Triaged |
|
2018-06-09 20:08:37 |
Jamie Strandboge |
ufw (Ubuntu Bionic): assignee |
|
Jamie Strandboge (jdstrand) |
|
2018-06-09 20:08:40 |
Jamie Strandboge |
ufw (Ubuntu Cosmic): assignee |
|
Jamie Strandboge (jdstrand) |
|
2018-07-03 19:30:00 |
Alejandro Dini |
bug |
|
|
added subscriber Alejandro Dini |
2018-10-23 08:42:09 |
martin lantz |
bug |
|
|
added subscriber martin lantz |
2018-12-14 14:12:19 |
Jamie Strandboge |
ufw: status |
In Progress |
Fix Committed |
|
2018-12-14 15:09:06 |
Jamie Strandboge |
ufw: importance |
Undecided |
Medium |
|
2018-12-14 15:32:35 |
Jamie Strandboge |
nominated for series |
|
Ubuntu Disco |
|
2018-12-14 15:32:35 |
Jamie Strandboge |
bug task added |
|
ufw (Ubuntu Disco) |
|
2018-12-14 15:32:40 |
Jamie Strandboge |
ufw (Ubuntu Disco): status |
Triaged |
In Progress |
|
2018-12-14 15:35:32 |
Jamie Strandboge |
ufw (Ubuntu Disco): importance |
Undecided |
Medium |
|
2018-12-14 15:35:34 |
Jamie Strandboge |
ufw (Ubuntu Cosmic): importance |
Undecided |
Medium |
|
2018-12-14 15:35:36 |
Jamie Strandboge |
ufw (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2018-12-14 21:48:40 |
Jamie Strandboge |
ufw: status |
Fix Committed |
Fix Released |
|
2018-12-27 12:41:49 |
Launchpad Janitor |
ufw (Ubuntu Disco): status |
In Progress |
Fix Released |
|
2019-01-09 21:57:39 |
Jamie Strandboge |
description |
bash completion, defined in /usr/share/bash-completion/completions/ufw, doesn't work: the completion is not dynamically loaded, because it uses deprecated helper function have().
According to /usr/share/bash-completions/bash_completion, which defines the helper functions:
# Backwards compatibility for compat completions that use have().
# @deprecated should no longer be used; generally not needed with dynamically
# loaded completions, and _have is suitable for runtime use.
and at the end of the file:
unset -f have
unset have
which means: function have() is not available for usage. The bash completion for ufw conditionally defines _ufw and the comspec:
have ufw &&
_ufw()
...
[ "$have" ] && complete -F _ufw ufw
These should be changed to:
_have ufw &&
_ufw()
...
_have ufw && complete -F _ufw ufw
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ufw 0.35-5
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Jun 4 14:34:11 2018
InstallationDate: Installed on 2018-04-28 (37 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: ufw
UpgradeStatus: No upgrade log present (probably fresh install) |
[Impact]
Tab completion is currently broken.
[Test Case]
$ ufw <tab><tab>
allow delete --dry-run --help logging reset status
app deny enable insert reject route version
default disable --force limit reload show
With an unpatched ufw, tab completion only shows the files in the current directory, which is meaningless for ufw.
[Regression Potential]
Risk of regression is considered very low since tab completion is totally broken and correct functionality is easily tested.
= Original description =
bash completion, defined in /usr/share/bash-completion/completions/ufw, doesn't work: the completion is not dynamically loaded, because it uses deprecated helper function have().
According to /usr/share/bash-completions/bash_completion, which defines the helper functions:
# Backwards compatibility for compat completions that use have().
# @deprecated should no longer be used; generally not needed with dynamically
# loaded completions, and _have is suitable for runtime use.
and at the end of the file:
unset -f have
unset have
which means: function have() is not available for usage. The bash completion for ufw conditionally defines _ufw and the comspec:
have ufw &&
_ufw()
...
[ "$have" ] && complete -F _ufw ufw
These should be changed to:
_have ufw &&
_ufw()
...
_have ufw && complete -F _ufw ufw
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ufw 0.35-5
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Jun 4 14:34:11 2018
InstallationDate: Installed on 2018-04-28 (37 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: ufw
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2019-01-09 23:16:45 |
Jamie Strandboge |
ufw (Ubuntu Bionic): status |
Triaged |
In Progress |
|
2019-01-09 23:16:47 |
Jamie Strandboge |
ufw (Ubuntu Cosmic): status |
Triaged |
In Progress |
|
2019-01-09 23:18:04 |
Jamie Strandboge |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2019-03-26 22:33:19 |
Brian Murray |
ufw (Ubuntu Cosmic): status |
In Progress |
Fix Committed |
|
2019-03-26 22:33:23 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2019-03-26 22:33:26 |
Brian Murray |
tags |
amd64 apport-bug bionic |
amd64 apport-bug bionic verification-needed verification-needed-cosmic |
|
2019-03-26 22:38:01 |
Brian Murray |
ufw (Ubuntu Bionic): status |
In Progress |
Fix Committed |
|
2019-03-26 22:38:08 |
Brian Murray |
tags |
amd64 apport-bug bionic verification-needed verification-needed-cosmic |
amd64 apport-bug bionic verification-needed verification-needed-bionic verification-needed-cosmic |
|
2019-03-28 11:10:08 |
Jamie Strandboge |
tags |
amd64 apport-bug bionic verification-needed verification-needed-bionic verification-needed-cosmic |
amd64 apport-bug bionic verification-done verification-done-bionic verification-done-cosmic |
|
2019-04-03 13:46:47 |
Launchpad Janitor |
ufw (Ubuntu Cosmic): status |
Fix Committed |
Fix Released |
|
2019-04-03 13:47:06 |
Robie Basak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2019-04-03 13:47:28 |
Launchpad Janitor |
ufw (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|