Windows fails to map via WedDAV - PROPFIND method error 405

Good evening!

I have problems connecting via WebDav from Windows following the instructions in “Mapping Drives With the Command Line”. Web interface works.

net use Z: http___192.168.1.2/owncloud/remote.php/webdav /user:admin pass
results in error 5 “access denied”.

litmus http___192.168.1.2/owncloud/remote.php/webdav admin pass

Now almost all tests passed (earlier it failed on the 2nd),
17. prophighunicode… FAIL (PROPPATCH of property with high unicode value)
18. propget… FAIL (No value given for property

Accessing

http___192.168.1.2/owncloud/remote.php/webdav
via web browser shows
This is the WebDAV interface. It can only be accessed by WebDAV clients such as the ownCloud desktop sync client.
after auth, so the scripts work fine.

Digging inside the protocol communication, I found that server replies 405 “Method not allowed” to PROPFIND request after successfull OPTIONS request / reply.

URL http___192.168.1.2/owncloud/remote.php/dav/files/admin/ gives the same.

Any ideas?

Steps to reproduce

  1. Install ownCloud
  2. Mapping Drives With the Command Line under Windows

Expected behaviour

New drive appear in My PC

Actual behaviour

Error 5 access denied

Server configuration

Operating system: Debian 10
Web server: Apache/2.4.38
Database: 10.3.17-MariaDB-0+deb10u1
PHP version: 7.3.11-1
ownCloud version: 10.3.0 (stable)
Updated from an older ownCloud or fresh install: fresh
Where did you install ownCloud from: repositories/production/Debian_10/
Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

{
    "basic": {
        "license key": "***REMOVED SENSITIVE VALUE***",
        "date": "Sat, 09 Nov 2019 02:01:16 +0000",
        "ownCloud version": "10.3.0.4",
        "ownCloud version string": "10.3.0",
        "ownCloud edition": "Community",
        "server OS": "Linux",
        "server OS version": "Linux myserver 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64",
        "server SAPI": "apache2handler",
        "webserver version": "Apache\/2.4.38 (Debian)",
        "hostname": "192.168.1.2",
        "logged-in user": "admin"
    },
    "stats": {
        "users": {
            "Database": {
                "count": 1,
                "seen": 1,
                "logged in (30 days)": 1
            }
        },
        "groups": {
            "OC\\Group\\Database": 1
        }
    },
    "config": {
        "updatechecker": false,
        "instanceid": "ocflccnsi7gg",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.2"
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "dbtype": "mysql",
        "version": "10.3.0.4",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/apps-external",
                "url": "\/apps-external",
                "writable": true
            }
        ],
        "installed": true
    },
    "integritychecker": {
        "passing": true,
        "enabled": true,
        "result": []
    },
    "core": {
        "backgroundjobs_mode": "cron",
        "enable_external_storage": "yes",
        "first_install_version": "10.3.0.4",
        "installedat": "1573260247.478",
        "lastcron": "1573260598",
        "lastupdateResult": "[]",
        "lastupdatedat": "1573264869",
        "public_files": "files_sharing\/public.php",
        "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php"
    },
    "apps": [ REMOVED, TOO LONG
    "phpinfo": cut, 32000 chars limit
}

List of activated apps:

Enabled:
  - comments: 0.3.0
  - configreport: 0.2.0
  - dav: 0.5.0
  - federatedfilesharing: 0.5.0
  - federation: 0.1.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_mediaviewer: 1.0.0
  - files_sharing: 0.12.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - firstrunwizard: 1.2.0
  - market: 0.5.0
  - notifications: 0.5.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - user_external

Are you using external storage, if yes which one: none

Are you using encryption: no

Are you using an external user-backend, if yes which one: WebDav (map drive dfrom Windows)

Client configuration

Browser: Chrome, does not apply, this bug is not connected with GUI

Operating system: Windows XP SP3

Logs

Web server error log

192.168.1.99 - - [09/Nov/2019:01:46:54 +0100] "OPTIONS / HTTP/1.1" 200 218 "-" "Microsoft-WebDAV-MiniRedir/5.1.2600"
192.168.1.99 - - [09/Nov/2019:01:46:54 +0100] "PROPFIND /owncloud HTTP/1.1" 301 595 "-" "Microsoft-WebDAV-MiniRedir/5.1.2600"
192.168.1.99 - - [09/Nov/2019:01:46:54 +0100] "PROPFIND /owncloud/ HTTP/1.1" 405 1019 "-" "Microsoft-WebDAV-MiniRedir/5.1.2600"

ownCloud log (data/owncloud.log)

cleared after litmus test, no new lines appeared after few more attempts to map network drive

Browser log

not connected with browser

Hey,

maybe one of the following resources helps you on how to correctly configure your webserver to fully support the required WebDAV requirements of ownCloud?

https://doc.owncloud.com/server/10.3/user_manual/files/access_webdav.html#known-problems