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\"}"}
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\"}"}
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 ?
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.
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