You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTPS-WebDAV mount on Windows failes if NC is installed to webserver-root #2979
Error 0x80070043 “The network name cannot be found.” occurs
Server configuration
Operating system: CentOS 7 Web server: Apache 2.4 Database: MySQL PHP version: 5.4 Nextcloud version: 10.0.1 Updated from an older Nextcloud/ownCloud or fresh install: OC8.2 -> NC 9.0 -> NC 10.0.1 Where did you install Nextcloud from: tar from website Signing status: No errors have been found.
The Windows Webdav Client Sends an OPTIONS to the root of the URL.
NC redirects to the login form (/index.php/login). The client sends an OPTIONS to this URL und gets 405 Method not allowed because there is no defined route in core/routes.php.
Possible Solution
If we add a route for / with method OPTIONS that redirects to /remote.php/webdav everything should work fine.
NC 11.01 here, with or without 6f31b73, still got the Error 0x80070043 “The network name cannot be found.” on a Windows 8.1 (But works on Debian and MacOS).
Sometimes Windows is a little broken and requests / even though the correct path is specified. When DavClnt is the user agent as it is when using net use to mount a share, it should redirect to the appropriate directory as in my pull request #3370. You still have to specify the correct path including remote.php/webdav to connect. This PR just fixes the weird windows behavior.
Activity
MorrisJobke commentedon Jan 9, 2017
This solutions looks more sensible than to document this and let people run into this.
@rullzer @LukasReschke @icewind1991 Opinions on this?
rullzer commentedon Jan 9, 2017
Mmmm I'm not sure. The issue I have with this is that it might lead to people not entering the full url and then running into other issues.
I guess the bigger question is why do they not respect the url provided.
Maybe adding the redirect is the easiest solution...
michag86 commentedon Jan 9, 2017
@rullzer OPTIONS on / (or NC root) redirects to remote.php/webdav ?
That would help 😄
MorrisJobke commentedon Jan 9, 2017
server/lib/base.php
Lines 1020 to 1028 in 54f96e5
lib/base.phpMorrisJobke commentedon Jan 9, 2017
@michag86 Could you give 6f31b73 a try?
JulienPalard commentedon Jan 24, 2017
NC 11.01 here, with or without 6f31b73, still got the
Error 0x80070043 “The network name cannot be found.”on a Windows 8.1 (But works on Debian and MacOS).Flole998 commentedon Feb 4, 2017
Sometimes Windows is a little broken and requests / even though the correct path is specified. When DavClnt is the user agent as it is when using net use to mount a share, it should redirect to the appropriate directory as in my pull request #3370. You still have to specify the correct path including remote.php/webdav to connect. This PR just fixes the weird windows behavior.
michag86 commentedon Mar 14, 2017
Fixed with #3370