Skip to content

HTTPS-WebDAV mount on Windows failes if NC is installed to webserver-root #2979

@michag86

Description

@michag86

Steps to reproduce

  1. Install Nextcloud to the webroot on the webserver
  2. Try to mount a webdav folder from nextcloud

Expected behaviour

The webdav folder should be mounted.

Actual behaviour

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.

Client configuration

Operating system:
Windows 8.1 / Windows 10

Additional Informations

For ownCloud the problem is discussed here:
owncloud/core#26350
And here are the workarounds documented:
https://doc.owncloud.org/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav
https://doc.owncloud.org/server/latest/user_manual/files/access_webdav.html?highlight=webdav#known-problems

Maybe Windows is not the only client that works this way:
https://www.ibm.com/support/knowledgecenter/SSHRKX_8.0.0/admin/webdav_http_options.html

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions