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

Bug #1544607 reported by pdemilly
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

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 <email address hidden>
    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

Revision history for this message
Joshua Powers (powersj) wrote :

Here is the upstream issue:
https://github.com/arut/nginx-dav-ext-module/issues/6

It appears fixed in xenial and newer. If this is still an issue requiring a fix back to trusty please respond.

Changed in nginx (Ubuntu):
status: New → Incomplete
Thomas Ward (teward)
Changed in nginx (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.