Your message dated Tue, 02 Dec 2014 21:19:43 +0000
with message-id <[email protected]>
and subject line Bug#770687: fixed in libapache-gallery-perl 1.0.2-4
has caused the Debian Bug report #770687,
regarding Default installation breaks access to gallery icons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
770687: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770687
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libapache-gallery-perl
Version: 1.0.2-3
Severity: important

Hi,

it seems the default installation of the galler-perl module does not work as
documented in the README (anymore?). The README contains this section about
making the static icons available and mentions that it has to come before
apache's standard /icons/ Alias:

2. Place the icons

For accessing the icons, you can create an alias to the directory where they
reside. Icons for libapache-gallery-perl *must* appear under /icons/gallery
on your topmost apache tree:

    Alias /icons/gallery/ "/usr/share/libapache-gallery-perl/icons/"


This however does not work, in the apache logs its visible why this leads to a 
403:

[Sat Nov 22 11:33:33.612612 2014] [core:error] [pid 26104] (2)No such file or 
directory: [client 192.168.1.
51:55421] AH00132: file permissions deny server access: 
/usr/share/libapache-gallery-perl/icons//usr/share/
libapache-gallery-perl/icons/agfolder.png

As you can see the /usr/share-path is duplicated when apache tries to access
the file. After quite some fruitless debugging attempts I finally turned to the
actual perl module and found this:

        # Let Apache serve icons without us modifying the request
        if ($r->uri =~ m/^\/icons/i) {
            if ($r->uri =~ m/^\/icons\/gallery\/([^\/]+$)/i) {
                $filename = "/usr/share/libapache-gallery-perl/icons/$filename";
                $r->filename($filename);
            }
            return $::MP2 ? Apache2::Const::DECLINED() : 
Apache::Constants::DECLINED();
        }

Which apparently prepends the directory to the filename. However as far as I
can see $filename is already set to the right path at this point which means
these lines break the path. Removing the line
                
$filename = "/usr/share/libapache-gallery-perl/icons/$filename";

fixes accessing files via myhost/icons/gallery/agfolder.png.

Unfortunately just removing the Alias for icons/gallery won't work either since
then the default one from Apache kicks in.

Andreas

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

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
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 libapache-gallery-perl depends on:
ii  libapache2-mod-perl2   2.0.9~1624218-2
ii  libimage-imlib2-perl   2.03-1+b3
ii  libimage-info-perl     1.28-1
ii  libimage-size-perl     3.232-1
ii  libtemplate-perl       2.24-1.2+b1
ii  libtext-template-perl  1.46-1
ii  perl                   5.20.1-2

libapache-gallery-perl recommends no packages.

libapache-gallery-perl suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: libapache-gallery-perl
Source-Version: 1.0.2-4

We believe that the bug you reported is fixed in the latest version of
libapache-gallery-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Don Armstrong <[email protected]> (supplier of updated libapache-gallery-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 02 Dec 2014 11:33:24 -0800
Source: libapache-gallery-perl
Binary: libapache-gallery-perl
Architecture: source all
Version: 1.0.2-4
Distribution: sid
Urgency: medium
Maintainer: Don Armstrong <[email protected]>
Changed-By: Don Armstrong <[email protected]>
Description:
 libapache-gallery-perl - Apache module to create image galleries on-the-fly
Closes: 770687
Changes:
 libapache-gallery-perl (1.0.2-4) unstable; urgency=medium
 .
   * Remove regex and filename setting for icons/gallery which caused the
     wrong file to be used. Thanks to Andreas Pakulat for identifying the
     issue. (Closes: #770687)
Checksums-Sha1:
 a51ed1a9698e18a8407fa6d1424c2cee7552f5c2 1954 
libapache-gallery-perl_1.0.2-4.dsc
 4cfd69a78b255d1e328bac201684c796f574fd7f 12331 
libapache-gallery-perl_1.0.2-4.diff.gz
 60347662eff5111c80d13dfc42d468cf7917d6eb 94848 
libapache-gallery-perl_1.0.2-4_all.deb
Checksums-Sha256:
 fc7a7acd21ef4bd3238469aaf925a426e23116653ef2c6fb7c49470b8c6dbabf 1954 
libapache-gallery-perl_1.0.2-4.dsc
 62f83e2ae765a6c52bb8655356d0d39903c0ded74562e2911ebcf2e472072ce0 12331 
libapache-gallery-perl_1.0.2-4.diff.gz
 6f570332f9ed3bbec6f8c988ab1ba233e1b8639584e982fede3b9816d6bb5742 94848 
libapache-gallery-perl_1.0.2-4_all.deb
Files:
 321d9dd4ad8a9f6f50f23756ee2530d7 1954 perl optional 
libapache-gallery-perl_1.0.2-4.dsc
 33db9144426cc25f7d0ed727c74e7bcc 12331 perl optional 
libapache-gallery-perl_1.0.2-4.diff.gz
 396b32ac7d9bf4494b3dbcfd2ecf842a 94848 perl optional 
libapache-gallery-perl_1.0.2-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVH4pjKLRMAHZjA+6AQqOlhAAmte7dU9aVY5BHYzVTRHPu9J9FEY/Q39N
BujQK93399xVVj/AvP9ZyHC2GRNRGjz83P4xiYgQL6InQn1Im8U3u1p6scra4eBD
zrG2JQxcshsHDFeU4pf0mZxabrP0GkYzKGs1C6DsvYg8TWVVQ68ZytxkB5+kGz8+
Ch0xvJHF5OZrPILEtyOsF6Xl0Fn4d/Xp8MEf5WkkcspTp7fX3dGSb/U+qlvNTzlx
8GZ+NmRN2M25tJI6lbH9oViXbBq2jjyLfoaXuAgYhzsk/A1l5TzfNUopkarDfMpC
YacDVgBS+tINaZhQvbXcW12V93Si3MedBTJXPZJ2znNI+quE/Jyt5elZNvHgItXc
l9/uY095CmgTSCUs8fVJzIK0LqI/RfxnfOmDthgMYQTkiJSjhs6y15Ga07vtGkJa
Y6JjS6U65MZbuYvoEufJUKZ7l6Q7OXcSNRWP8YdFmkonKDs1fK5f+z4M2qJLen3e
XS7R1siskgkIsAMaEZ2yxQYpBRWnBOMKCCzZ2Qe0ZPExvXpP2kaaF+EH2fP5VL8b
1r4ZU6SaL9/fZKpiDEc9dgQgsvVzo9YHIpksyvOk9qH3zEC1Txkj/XURlLYouUQj
J/y3Txd8QTaGI+Fkx9In9GhEbOO8cWYPn3z2LJDXVVyHrmrC1OWTrEEuIaAOn6w8
a2LmN6/NIZQ=
=kXe1
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to