Debian Bug report logs - #680755
lighttpd: Upgrading from Squeeze disables directory listing

version graph

Package: lighttpd; Maintainer for lighttpd is Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org>; Source for lighttpd is src:lighttpd (PTS, buildd, popcon).

Reported by: Konstantin Khomoutov <flatworm@users.sourceforge.net>

Date: Sun, 8 Jul 2012 12:33:02 UTC

Severity: important

Found in version lighttpd/1.4.31-1

Done: Olaf van der Spek <olaf@xwis.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org>:
Bug#680755; Package lighttpd. (Sun, 08 Jul 2012 12:33:05 GMT) (full text, mbox, link).


Acknowledgement sent to Konstantin Khomoutov <flatworm@users.sourceforge.net>:
New Bug report received and forwarded. Copy sent to Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org>. (Sun, 08 Jul 2012 12:33:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Konstantin Khomoutov <flatworm@users.sourceforge.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: lighttpd: Upgrading from Squeeze disables directory listing
Date: Sun, 08 Jul 2012 16:08:33 +0400
[Message part 1 (text/plain, inline)]
Package: lighttpd
Version: 1.4.31-1
Severity: important

Stock /etc/lighttpd/lighttpd.conf configuration file as packaged in
Squeeze contains these lines (uncommented):

dir-listing.encoding        = "utf-8"
server.dir-listing          = "enable"

In the new version, packaged with Wheezy, this snippet has been
moved to its own configuration file,
/etc/lighttpd/conf-available/10-dir-listing.conf
and the user now is supposed to explicitly enable this module
(mod_dirlisting) by running

# lighty-enable-mod dir-listing

While I think this change is generally a good idea, upgrading to Wheezy
broke the directory listing behaviour for me as the mentioned
configuration file wasn't symlinked under /etc/lighttpd/conf-enabled/
automatically for me.

>From comparing the lists of Squeeze and Wheezy lighttpd packages,
I gather that the mod_dirlisting configuration has been "modularized"
when preparing the new package.
Hence I propose that at least this change in behaviour should be
mentioned in NEWS.Debian.
Ideally though, the upgrading script should attempt to parse
the existing configuration file to gather if the user has mod_dirlisting
enabled and if so, replace the contents of
/etc/lighttpd/conf-available/10-dir-listing.conf
with the extracted values and then symlink it under the
/etc/lighttpd/conf-enabled/ directory.
If the user has the server.dir-listing directive commented out, no
action could be taken.
Unfortunately, the case of the user having the dir-listing.encoding option
uncommented and changed from the default value, and the
server.dir-listing option commented out is also possible.

I attached my Squeeze configuration file just in case.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lighttpd depends on:
ii  libattr1                    1:2.4.46-8
ii  libbz2-1.0                  1.0.6-3
ii  libc6                       2.13-33
ii  libgamin0 [libfam0]         0.1.10-4
ii  libldap-2.4-2               2.4.28-1.1
ii  libpcre3                    1:8.30-5
ii  libssl1.0.0                 1.0.1c-3
ii  libterm-readline-perl-perl  1.0303-1
ii  lsb-base                    4.1+Debian7
ii  mime-support                3.52-1
ii  perl                        5.14.2-12
ii  zlib1g                      1:1.2.7.dfsg-13

Versions of packages lighttpd recommends:
pn  spawn-fcgi  <none>

Versions of packages lighttpd suggests:
pn  apache2-utils  <none>
ii  openssl        1.0.1c-3
pn  rrdtool        <none>

-- no debconf information
[lighttpd.conf.dpkg-old.gz (application/x-gzip, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org>:
Bug#680755; Package lighttpd. (Mon, 09 Jul 2012 15:33:24 GMT) (full text, mbox, link).


Acknowledgement sent to Olaf van der Spek <olafvdspek@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org>. (Mon, 09 Jul 2012 15:33:26 GMT) (full text, mbox, link).


Message #10 received at 680755@bugs.debian.org (full text, mbox, reply):

From: Olaf van der Spek <olafvdspek@gmail.com>
To: Konstantin Khomoutov <flatworm@users.sourceforge.net>, 680755@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: [pkg-lighttpd] Bug#680755: lighttpd: Upgrading from Squeeze disables directory listing
Date: Mon, 9 Jul 2012 17:31:20 +0200
On Sun, Jul 8, 2012 at 2:08 PM, Konstantin Khomoutov
<flatworm@users.sourceforge.net> wrote:
> While I think this change is generally a good idea, upgrading to Wheezy
> broke the directory listing behaviour for me as the mentioned
> configuration file wasn't symlinked under /etc/lighttpd/conf-enabled/
> automatically for me.

That's kinda by design. Directory listings should not be enabled automatically.

> Hence I propose that at least this change in behaviour should be
> mentioned in NEWS.Debian.

Do you really think this little change is NEWS worthy?

> Ideally though, the upgrading script should attempt to parse
> the existing configuration file to gather if the user has mod_dirlisting
> enabled and if so, replace the contents of
> /etc/lighttpd/conf-available/10-dir-listing.conf
> with the extracted values and then symlink it under the
> /etc/lighttpd/conf-enabled/ directory.
> If the user has the server.dir-listing directive commented out, no
> action could be taken.

That's far too complex.

Olaf




Marked Bug as done Request was from Olaf van der Spek <olaf@xwis.net> to control@bugs.debian.org. (Fri, 19 Apr 2013 17:39:13 GMT) (full text, mbox, link).


Notification sent to Konstantin Khomoutov <flatworm@users.sourceforge.net>:
Bug acknowledged by developer. (Fri, 19 Apr 2013 17:39:14 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 18 May 2013 07:30:16 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 12 06:27:11 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.