Update to 10.0.5 - DAV not working

Steps to reproduce

1.Set up a new sync folder with a normal user
2.See the error 403
3.

Expected behaviour

Choose a distant folder

Actual behaviour

Error 403 Call to a member function getUID() on boolean.

Server configuration

Operating system: REDHAT

Web server: apache

Database: mariadb

PHP version:7.0

ownCloud version: 10.0.5

Updated from an older ownCloud or fresh install:Update from 10.0.3

Where did you install ownCloud from: Git - stable10

**Are you using external storage, if yes which one:** no

**Are you using encryption:** no

**Are you using an external user-backend, if yes which one: NO

### Client configuration
**Browser:** Mozilla ESR 52

**Operating system:** Windows 7

### Logs
#### Web server error log

Insert your webserver log here
`

ownCloud log (data/owncloud.log)

In the log , {"reqId":"0a2426ba-0026-419f-9f74-4a4f68bacba3","level":4,"time":"2018-01-30T13:00:20+00:00","remoteAddr":"10.32.101.193","user":"lannes.lacrouts@yahoo.fr","app":"webdav","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"Exception: {\"Message\":\"HTTP\/1.1 503 Error: Call to a member function getUID() on boolean\",\"Exception\":\"Sabre\DAV\Exception\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 [internal function]: {closure}(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#1 \/var\/www\/mycore_1003\/lib\/composer\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Object(Closure), Array)\n#2 \/var\/www\/mycore_1003\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(466): Sabre\Event\EventEmitter->emit('beforeMethod', Array)\n#3 \/var\/www\/mycore_1003\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#4 \/var\/www\/mycore_1003\/remote.php(70): Sabre\DAV\Server->exec()\n#5 \/var\/www\/mycore_1003\/remote.php(170): handleException(Object(Error))\n#6 {main}\",\"File\":\"\/var\/www\/mycore_1003\/remote.php\",\"Line\":68,\"User\":\"lannes.lacrouts@yahoo.fr\"}"}

Please post logs.

How did you update ? Git ?

Best would be to use this issue template https://raw.githubusercontent.com/owncloud/core/master/.github/issue_template.md

Update via git in order to have the last stable version . Stable 10 is on 10.0.5 . A make was done and copied directly on the existing version .

In the log , {"reqId":"0a2426ba-0026-419f-9f74-4a4f68bacba3","level":4,"time":"2018-01-30T13:00:20+00:00","remoteAddr":"10.32.101.193","user":"lannes.lacrouts@yahoo.fr","app":"webdav","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"Exception: {\"Message\":\"HTTP\\/1.1 503 Error: Call to a member function getUID() on boolean\",\"Exception\":\"Sabre\\DAV\\Exception\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 [internal function]: {closure}(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#1 \\/var\\/www\\/mycore_1003\\/lib\\/composer\\/sabre\\/event\\/lib\\/EventEmitterTrait.php(105): call_user_func_array(Object(Closure), Array)\n#2 \\/var\\/www\\/mycore_1003\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(466): Sabre\\Event\\EventEmitter->emit('beforeMethod', Array)\n#3 \\/var\\/www\\/mycore_1003\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \\/var\\/www\\/mycore_1003\\/remote.php(70): Sabre\\DAV\\Server->exec()\n#5 \\/var\\/www\\/mycore_1003\\/remote.php(170): handleException(Object(Error))\n#6 {main}\",\"File\":\"\\/var\\/www\\/mycore_1003\\/remote.php\",\"Line\":68,\"User\":\"lannes.lacrouts@yahoo.fr\"}"}

Please note that updating using git is not officially supported, but I wouldn't expect anything to be able to go wrong there.

Also note that 10.0.5 was qualified a broken release. Please check out v10.0.6, run make and try again. See https://central.owncloud.org/t/owncloud-server-10-0-5/11543

Did you see any errors during the occ upgrade command ? Please check the oc_accounts table to see if your user still properly exists.

What version did you have before ? (also a question from the issue template I posted)

The user exists in oc_accounts table , no error during occ upgrade . 10.0.3 before

LDAP ? no LDAP ? please use the issue template and provide all necessary info about your setup

Sorry , i just update the first post , you can see the template issue

Thank you.

By the way, did you do git checkout v10.0.5 or git checkout stable10 ?

Try this: curl -D - -X PROPFIND -u youruser https://yourhost/owncloud/remote.php/webdav
then curl -D - -X PROPFIND -u youruser https://yourhost/owncloud/remote.php/dav/files/youruser/

In both cases it will ask you for a password. I expect that both calls will return a 503 error.

So far it is unclear what is happening. Since the error is about a boolean, I suspect that this user object is false for some unknown reason.

can't connect to host .

On windows , when i mount the webdav , it's displays : network failed .

On the browser , i have : This is the WebDAV interface. It can only be accessed by WebDAV clients such as the ownCloud desktop sync client.

This doesn't make sense. If your browser and desktop client can connect to the host, then running curl with the correct URL on the same machine should be able to connect to your server.

From what I see in the code one reason to get false from getUser() is when the user did not receive a session. Why is unclear. If it was an authentication problem I'd expect a failure to appear earlier.

Please confirm that your install is sitting on the v10.0.5 tag and not the stable10 branch. The stable10 branch contains more changes that came after 10.0.5 so it is not truly 10.0.5.

Question:
I asked yesterday at https://central.owncloud.org/t/owncloud-10-0-4-4-davfs-issue/10741/3 if the issue mentioned there (mount.davfs: mounting failed on 10.0.4 "the server does not support WebDAV") has been fixed in 10.0.4 because I could not see it in the changelog ...

I just wanted to update from official 10.0.4 to 10.0.5, good to see the info that 10.0.5 is broken... Any idea when we will have a 10.0.6 ?

Greetings, Thommie

PS. someone should put a notice on https://owncloud.org/download/ that 10.0.5 was revoked due to webdav problems

Correction : "... if the issue mentioned there ... has been fixed in 10.0.5 because I could not see it in the changelog ... "

We did not update the download page because 10.0.5 wasn't published for download at all, it still points at 10.0.4. This is because the problem was discovered before the announcement.

10.0.6 will be announced later this week.

The davfs fix will be in 10.0.6 also.

thanks for the update :relaxed:

I see the same dafs error in 10.0.6:

locutus:/home/thommie # mount -t davfs https://www.netzwissen.de/owncloud/remote.php/dav/addressbooks/users/Thommie2/default/ /mnt/dav/
Please enter the username to authenticate with server
https://www.netzwissen.de/owncloud/remote.php/dav/addressbooks/users/Thommie2/default/ or hit enter for none.
  Username: Thommie2          
Please enter the password to authenticate user Thommie2 with server
https://www.netzwissen.de/owncloud/remote.php/dav/addressbooks/users/Thommie2/default/ or hit enter for none.
  Password:  
/sbin/mount.davfs: mounting failed; the server does not support WebDAV