[Pkg-nginx-maintainers] Bug#844427: nginx-extras: download failure with all Android browsers when mime-type is set properly

Dan Ritter dsr-debbugs at tao.merseine.nu
Tue Nov 15 16:05:26 UTC 2016


Package: nginx-extras
Version: 1.9.10-1~bpo8+4
Severity: normal

Dear Maintainer,

   * What led up to the situation?

nginx is set up to serve /home/user/public_html as url:~user/
via

    location ~ ^/~(.+?)(/.*)?$ {
                alias /home/$1/public_html$2;

This generally works.

However, when I set the MIME type for epub files:

     types {
         application/epub+zip                  epub;
     }

Then downloads of files with names containing [ or ] characters
fail on Android Firefox and Chrome browsers. They complain of
an illegal character in the URI, which I suspect means that nginx
is not properly uri-escaping the filenames.

They do not fail on Debian Firefox and Chrome browsers.

If I remove the mime-type listing for these files, it works smoothly on
all tested browsers.

(Is this, perhaps, actually an Android problem? Maybe, but there ought
to be a workaround at the server end.)

I have observed the same problem on nginx, nginx-extras and nginx-fancy,
including shifting to the jessie-backports version.



*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-0.bpo.4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages nginx-extras depends on:
ii  libc6                       2.19-18+deb8u6
ii  libexpat1                   2.1.0-6+deb8u3
ii  libgd3                      2.1.0-5+deb8u7
ii  libgeoip1                   1.6.2-4
ii  libluajit-5.1-2             2.0.3+dfsg-3
ii  libpam0g                    1.1.8-3.1+deb8u1+b1
ii  libpcre3                    2:8.35-3.3+deb8u4
ii  libperl5.20                 5.20.2-3+deb8u6
ii  libssl1.0.0                 1.0.2j-1~bpo8+1
ii  libxml2                     2.9.1+dfsg1-5+deb8u3
ii  libxslt1.1                  1.1.28-2+deb8u2
ii  nginx-common                1.9.10-1~bpo8+4
ii  perl                        5.20.2-3+deb8u6
ii  perl-base [perlapi-5.20.2]  5.20.2-3+deb8u6
ii  zlib1g                      1:1.2.8.dfsg-2+b1

nginx-extras recommends no packages.

Versions of packages nginx-extras suggests:
pn  nginx-doc  <none>

-- no debconf information



More information about the Pkg-nginx-maintainers mailing list