Application profiles with spaces in their names

Bug #715676 reported by Marty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ufw (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ufw

I can't find documentation on application profiles so please point me at them if they cover this.

Ubuntu 10.10 has a number of application profiles (SSH, Apache, Postfix etc.etc.). Some of them use names with spaces.

# ufw allow Apache Full
ERROR: Need 'to' or 'from' clause

There are a number of ways to approach this:

- discourage the use of spaces in the name

- document the need for quoting these names in the man page

- attempt to handle these names within ufw.

Related branches

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

Thank you for using Ubuntu and helping to make it better. Documentation for application profiles is in the ufw(8) man page under the section 'APPLICATION INTEGRATION'. As for profiles with spaces in the names, they work fine as long as you quote them (as you mentioned). This is not a problem with ufw but is simply how the shell works. For example:

$ sudo ufw allow Apache Full
ERROR: Need 'to' or 'from' clause
$ sudo ufw allow 'Apache Full'
Rule added

I have made an adjustment to the man page to make this clear.

Changed in ufw (Ubuntu):
status: New → Fix Committed
Revision history for this message
Marty (marty-supine) wrote :

The 'APPLICATION INTEGRATION' section of the man page covers the CLI syntax to use the profiles. I was referring to the structure of the profiles themselves. They look straight forward but it would still be nice to have some documentation on them.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ufw - 0.30.0-3ubuntu1

---------------
ufw (0.30.0-3ubuntu1) natty; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - debian/rules: Don't install the upstream application profiles that are
      shipped with the Debian package.
  * debian/control: update Vcs for natty

ufw (0.30.0-3) unstable; urgency=low

  * convert to dh_python2:
    - debian/control: remove python-central dependency
    - debian/rules: use dh_python2 instead of dh_pycentral
  * debian/rules: run 'make clean' in the clean target
  * debian/ufw.init.debian: look for /lib/ufw, not /usr/sbin/ufw to see if we
    should quit (ie, when ufw is removed and not purged). Also, only have
    /bin and /sbin in PATH
  * add lintian override
    - debian/rules: add dh_lintian
    - debian/dirs: add usr/share/lintian/overrides
    - ignore init.d-script-possible-missing-stop
  * debian/install, debian/rules: update to use debian/install primarily
  * renamed debian/changelog.pre-0.27.1 to debian/changelog.Debian.pre-0.27.1
  * no longer install upstream ChangeLog.pre-0.25
  * grab man page updates from upstream:
    - mention quoting of application profile names with spaces. Upstream
      r714. (LP: #715676)
    - fix man-page hyphenation in ufw.8. Upstream r716.
    - fix manpage reference to /etc/defaults/ufw. Upstream r713.
      (Closes: 601111)
  * fix typo in warning. Upstream r711. (LP: #637876)
  * run_tests.sh: adjust PATH if iptables can't be found. Upstream r717.
 -- Jamie Strandboge <email address hidden> Tue, 22 Feb 2011 17:46:28 -0600

Changed in ufw (Ubuntu):
status: Fix Committed → Fix Released
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.