[Bug 1544607] [NEW] nginx dav module doesn't return directories with space in names in ubuntu precise and trusty

pdemilly 1544607 at bugs.launchpad.net
Thu Feb 11 15:17:04 UTC 2016


Public bug reported:

Trying to set DAV with nginx, I am having a strange problem is that
files with space in name are not returned only single words files.

I am running version 1.4.6 according to ubuntu.

    Package: nginx-full                      
    State: installed
    Automatically installed: no
    Version: 1.4.6-1ubuntu3.4
    Priority: optional
    Section: universe/httpd
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
    Architecture: amd64
    Uncompressed Size: 1,035 k
    Depends: nginx-common (= 1.4.6-1ubuntu3.4), libc6 (>= 2.14), libexpat1 (>= 2.0.1), libgd3 (>= 2.1.0~alpha~), libgeoip1, libpam0g (>= 0.99.7.1), libpcre3, libssl1.0.0 (>= 1.0.1), libxml2 (>= 2.7.4), libxslt1.1 (>= 1.1.25), zlib1g (>=
         1:1.2.0)
    Suggests: nginx-doc (= 1.4.6-1ubuntu3.4)
    Conflicts: nginx-core, nginx-core, nginx-extras, nginx-extras, nginx-light, nginx-light, nginx-naxsi, nginx-naxsi, nginx-full
Here is my config file. Nothing special. Autoindex works fine

server {
    listen 8888;
    server_name localhost;
    charset utf-8;

    location / {
            expires max;
            autoindex on;

            client_max_body_size 100M;

            root /var/www/webdav;


            dav_methods PUT DELETE MKCOL COPY MOVE;
            dav_ext_methods PROPFIND OPTIONS;
            dav_access user:rw group:rw all:r;
            create_full_put_path on;

            #auth_basic "Restricted";
            #auth_basic_user_file /etc/nginx/htpasswd;

            # NGINX WebDAV requires trailing slashes on directories, yet certain
            # common WebDAV clients don't support them. Do rewrites to fix it,

            if (-d $request_filename) { rewrite ^(.*[^/])$ $1/ break; }
            if ($request_method = MKCOL) { rewrite ^(.*[^/])$ $1/ break; }
    }
}

Thanks for your help

Pascal

** Affects: nginx (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1544607

Title:
  nginx dav module doesn't return directories with space in names in
  ubuntu precise and trusty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1544607/+subscriptions



More information about the Ubuntu-server-bugs mailing list