Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC 15 WebDAV Windows 7 native client not working #13092

Closed
antiuser opened this issue Dec 16, 2018 · 4 comments
Closed

NC 15 WebDAV Windows 7 native client not working #13092

antiuser opened this issue Dec 16, 2018 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info

Comments

@antiuser
Copy link

antiuser commented Dec 16, 2018

Hi! I have issue when connecting nextcloud by WebDAV in Windows 7.
My nginx configuration:

server {
	listen 80;
	root /var/www;
	index index.html index.htm index.nginx-debian.html;
	server_name nextcloud.local nextcloud.e-yugansk.ru;
	add_header X-Content-Type-Options nosniff;
	add_header X-XSS-Protection "1; mode=block";
	add_header X-Robots-Tag none;
	add_header X-Download-Options noopen;
	add_header X-Permitted-Cross-Domain-Policies none;
	add_header Referrer-Policy no-referrer;
	fastcgi_hide_header X-Powered-By;
	client_max_body_size 512M;
	dav_access user:rw group:rw all:r;
	fastcgi_buffers 64 4K;
	gzip on;
	gzip_vary on;
	gzip_comp_level 4;
	gzip_min_length 256;
	gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
	gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;

	location = /.well-known/carddav {
		return 301 $scheme://$host/remote.php/dav;
	}
	
	location = /.well-known/caldav {
		return 301 $scheme://$host/remote.php/dav;
	}
	location / {
		rewrite ^ /index.php$request_uri;
	}

	location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
		deny all;
	}
	location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
		deny all;
	}

	location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
		fastcgi_split_path_info ^(.+?\.php)(/.*)$;
		include fastcgi_params;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_param PATH_INFO $fastcgi_path_info;
		fastcgi_param modHeadersAvailable true;
		fastcgi_param front_controller_active true;
		fastcgi_pass unix:/run/php/php7.0-fpm.sock;
		fastcgi_intercept_errors on;
		fastcgi_request_buffering off;
	}

	location ~ ^/(?:updater|ocs-provider)(?:$|/) {
		try_files $uri/ =404;
		index index.php;
	}

	location ~ \.(?:css|js|woff2?|svg|gif)$ {
		try_files $uri /index.php$request_uri;
		add_header Cache-Control "public, max-age=15778463";
		add_header X-Content-Type-Options nosniff;
		add_header X-XSS-Protection "1; mode=block";
		add_header X-Robots-Tag none;
		add_header X-Download-Options noopen;
		add_header X-Permitted-Cross-Domain-Policies none;
		add_header Referrer-Policy no-referrer;
		access_log off;
	}

	location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
		try_files $uri /index.php$request_uri;
		access_log off;
	}
}

Logs:

 10.232.5.251 - - [16/Dec/2018:13:33:34 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:34 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:35 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:35 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:37 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:37 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:37 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:37 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"10.232.5.251 - - [16/Dec/2018:13:33:40 +0500] "PROPFIND /remote.php HTTP/1.1" 404 4211 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:42 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:42 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:42 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
 10.232.5.251 - - [16/Dec/2018:13:33:42 +0500] "PROPFIND /remote.php/webdav HTTP/1.1" 401 426 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"
10.232.5.251 - - [16/Dec/2018:13:37:56 +0500] "PROPFIND / HTTP/1.1" 405 5 "-" "Microsoft-WebDAV-MiniRedir/6.1.7600"

WebClient started on Windows machine

@antiuser antiuser added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Dec 16, 2018
@antiuser antiuser changed the title NC WebDAV Windows 7 native client not working NC 15 WebDAV Windows 7 native client not working Dec 16, 2018
@violoncelloCH
Copy link
Member

could you describe the steps to reproduce and what exactly failed?

@antiuser
Copy link
Author

antiuser commented Dec 17, 2018

could you describe the steps to reproduce and what exactly failed?

Hi, Violoncello! So what i do:
Go to Computer (in my Windows 7 box) - clict to "map a network drive" - Connect to site - then i type in path http://nextcloud.local/remote.php/webdav then i get error message that the path is not valid, also if my path http://nextcloud.local/remote.php/webdav/admin (where admin is my NC username) it fails too.

@violoncelloCH
Copy link
Member

violoncelloCH commented Dec 21, 2018

can you try if http://nextcloud.local/remote.php/webdav/ works [with trailing slash] (just the address you get from settings at the bottom left of your NC files)?

In general: this looks more like a configuration issue than an actual bug in NC. This issue tracker is not for support questions. For help see https://help.nextcloud.com

@MorrisJobke
Copy link
Member

As there is no report since a while and we can't reproduce the issue I will close this ticket. If this is still happening please feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info
Projects
None yet
Development

No branches or pull requests

3 participants