[Bug 1336833] [NEW] a2ensite fails if the conf filename contains whitespace
Chris Drost
1336833 at bugs.launchpad.net
Wed Jul 2 15:39:13 UTC 2014
Public bug reported:
Package version tested: 2.4.7-1ubuntu4
Expected behavior: site names should be whitespace-tolerant.
[Side note: site names should probably also not require the .conf
extension, as there should be no other normal files in sites-enabled/ --
just filtering out directories (for version control systems which
wrongly version sites-enabled rather than sites-available) should
suffice. This also eliminates the complicated logic where a2ensite looks
both for "$1" and "$1.conf", unless we want to keep that for historical
compatibility reasons. ]
Observed behavior: a2ensite breaks when there is whitespace in a site
name.
Steps to reproduce:
$ sudo su -
# cd /etc/apache2/sites-available
# cp -a 000-default.conf '001 filename with whitespace.conf'
# a2ensite '001 filename with whitespace.conf'
ERROR: Site 001 does not exist!
ERROR: Site filename does not exist!
ERROR: Site with does not exist!
ERROR: Site whitespace does not exist!
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Package version tested: 2.4.7-1ubuntu4
Expected behavior: site names should be whitespace-tolerant.
[Side note: site names should probably also not require the .conf
extension, as there should be no other normal files in sites-enabled/ --
just filtering out directories (for version control systems which
wrongly version sites-enabled rather than sites-available) should
suffice. This also eliminates the complicated logic where a2ensite looks
both for "$1" and "$1.conf", unless we want to keep that for historical
compatibility reasons. ]
Observed behavior: a2ensite breaks when there is whitespace in a site
name.
Steps to reproduce:
$ sudo su -
- # cp -a 000-default.conf '001 filename with whitespace.conf'
+ # cd /etc/apache2/sites-available
+ # cp -a 000-default.conf '001 filename with whitespace.conf'
# a2ensite '001 filename with whitespace.conf'
ERROR: Site 001 does not exist!
ERROR: Site filename does not exist!
ERROR: Site with does not exist!
ERROR: Site whitespace does not exist!
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in Ubuntu.
https://bugs.launchpad.net/bugs/1336833
Title:
a2ensite fails if the conf filename contains whitespace
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1336833/+subscriptions
More information about the Ubuntu-server-bugs
mailing list