Repository navigation
Closed
Description
I can login to the webUI but webDAV repeatedly fails. I believe it's caused by one (or more) external mounts that are being unresponsive / unreachable / etc. but that shouldn't cause webDAV to fail.
server info
- using "owncloud7p" server (see 'lexington-lab-systems.txt' for more info)
- setup your own test account and try to use a webDAV client
log snippet
{"reqId":"5452471ef3433","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-30T14:11:42+00:00","method":"HEAD","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"5452471f1b541","app":"admin_audit","message":"User craig attempted to log into ownCloud from IP address: 50.241.102.21","level":1,"time":"2014-10-30T14:11:43+00:00","method":"HEAD","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"5452471f1b541","app":"admin_audit","message":"User craig logged into ownCloud from IP address: 50.241.102.21","level":1,"time":"2014-10-30T14:11:43+00:00","method":"HEAD","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"545247209d439","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for '' !!! \ncache: Array\n(\n [fileid] => 46602\n [storage] => dropbox::rt4kj1ktqigcl9jlzalepa60mh0n0zn\/\n [path] => \n [parent] => -1\n [name] => \n [mimetype] => httpd\/unix-directory\n [mimepart] => httpd\n [size] => 34097319\n [mtime] => 1414678168\n [storage_mtime] => 1414678168\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 545246988b5e8\n [permissions] => 31\n)\n \ndata: Array\n(\n [mimetype] => httpd\/unix-directory\n [mtime] => 1414678304\n [size] => -1\n [etag] => 545247209d015\n [storage_mtime] => 1414678304\n [permissions] => 31\n)\n","level":0,"time":"2014-10-30T14:11:44+00:00","method":"PROPFIND","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"545247209d439","app":"sharepoint","message":"hasUpdated: ","level":0,"time":"2014-10-30T14:11:54+00:00","method":"PROPFIND","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"545247209d439","app":"sharepoint","message":"hasUpdated: ","level":0,"time":"2014-10-30T14:11:54+00:00","method":"PROPFIND","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"545247209d439","app":"sharepoint","message":"EXCEPTION - treeBuilder - 401 - Access Denied","level":0,"time":"2014-10-30T14:11:54+00:00","method":"PROPFIND","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"545247209d439","app":"remote","message":"","level":4,"time":"2014-10-30T14:11:54+00:00","method":"PROPFIND","url":"\/owncloud7p\/remote.php\/webdav\/"}
{"reqId":"545247209d439","app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud7p\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-10-30T14:11:54+00:00","method":"PROPFIND","url":"\/owncloud7p\/remote.php\/webdav\/"}
Activity
craigpg commentedon Oct 30, 2014
@PVince81 or @DeepDiver1975 can you take a look?
PVince81 commentedon Oct 30, 2014
As a quick test I tried adding a
throw new \Exception()in thestat()function of the S3 ext storage backend, and Webdav still works.From the log it looks like the sharepoint storage backend is throwing an exception in
hasUpdated()PVince81 commentedon Nov 4, 2014
Any progress on this ?
jnfrmarks commentedon Nov 4, 2014
@PVince81 @craigpg @MTRichards
What do you need for info on this? Is this a true stop ship issue?
craigpg commentedon Nov 5, 2014
Confirmed in my testing, that webDav fails to get listing if there are configuration issues with external mounts. In my testing, I had credentials errors (they were missing) for some sharepoint mounts and the ip address had changed for a windows network drive. These are easy to spot in the files page since the user will get a warning about them and the bad mounts will have a red indicator icon. Once i fixed the errors associated with the mounts, webDav worked fine.
@DeepDiver1975, need to make the mounts more robust such that they don't break webDav. This can easily happen if the admin creates a sharepoint mount that requires individual users to enter their username / password. Until they do so, webDav will not work and I suspect that the bad mount will prevent the client from syncing as well.
@karlitschek, @MTRichards ?
PVince81 commentedon Nov 5, 2014
@craigpg can you try doing two separate tests:
I'm suspecting that the latter is the one causing the issue.
If there is a failure, check the owncloud.log for exceptions so we get a clue what kind of exceptions these apps are throwing that might impair the rest of the code.
craigpg commentedon Nov 6, 2014
I was going to try and reproduce (2) above, but I didn't get very far. Probably due to more lab configuration changes, the test server can no longer resolve api.dropbox.com, and this is breaking webDAV as well. You can probably simulate this by putting api.dropbox.com into the server's /etc/host file and have it point to some place other than dropbox.
I'll try reproducing the WND case as well, but I'm hoping there's a general solution that can protect webDAV from any and all mount exceptions.
craigpg commentedon Nov 6, 2014
Log for WND with bad credentials. Results in same webDAV client error attempting to list the directory.
Note, however, that the desktop client DID sync the WND folder, which was of course empty because of the bad credentials. So, at least in my limited testing, the bad WND mounts do not effect the desktop client's ability to sync.
10 remaining items
craigpg commentedon Nov 6, 2014
I've tested with #11994 patch and on the server with no internet connectivity (i.e. google, dropbox, etc. are unreachable) webDAV is still failing:
Result:
craigpg commentedon Nov 6, 2014
Without the patch, windows network drive with missing/bad credentials, webDAV is able to get the files listing.
craigpg commentedon Nov 6, 2014
FYI, dropbox mounts seem quite resilient and I was unable to break webDAV by disabling api.dropbox.com (via /etc/hosts) or deleting the dropbox api keys. There was some slight differences in behavior between the patched and non-patched servers, but in either case webDAV did not break.
PVince81 commentedon Nov 7, 2014
WebDAV doesn't break because it properly throws StorageNotAvailableException.
Dropbox does NOT raise that exception and most other external storages also don't. Every other storage needs to be fixed individually, see #11792.
Need to spend some time finding out what the possible error cases are because we don't want to throw StorageNotAvailableException for every storage exception, only a few types.
So here you should mostly test whether WebDAV, WND and Sharepoint work properly with the patch.
What do you mean "does NOT block webdav" ? What does blocking mean ?
You might still be able to get a list of files due to the file cache but not access file contents.
PVince81 commentedon Nov 7, 2014
If WebDAV, WND and Sharepoint work let's ship this.
There's not enough time to fix all the other storage instances...
craigpg commentedon Nov 7, 2014
I agree with @PVince81. There are still cases where webDAV is unable to get the files list, presumably because of a failed storage instance. In my testing, it looks like WND and Sharepoint are in good shape at this point. 👍
MTRichards commentedon Nov 7, 2014
Agreed, but lets keep it on the list for oC 8 external storage updates.
PVince81 commentedon Nov 7, 2014
Note: the stable7 fix has already been merged.
The master one is having trouble with Jenkins but is not important for the release.
PVince81 commentedon Nov 7, 2014
Removing gold.
Should we close this and continue in #11792 ?
DeepDiver1975 commentedon Jan 7, 2015
yes - THX