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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to