New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
propfind on webdav root results in a http 500 internal error when fc share is unavailable #15430
Comments
Ignore above, I think that was a different topic |
If it's a known issue, is it in any repository registered as an issue? EDIT: this is a showstopper for mobile apps |
AHA - this is the root cause! |
This also explains the error message: "message":"The passed data is not valid XML" |
Tried with an unmounted external storage folder (S3), no problems there. |
sure - this is specific to s2s |
I thought this was fixed. If you do a PROPFIND on "remote.php/webdav", if any of the subfolders is not available, you should still get a correct response. |
@jvillafanez in what way is the remote share unavailable ? How did you setup the target server ? Is it in maintenance mode, or did you delete ownCloud ? This is important because it can affect the response returned by the target server. |
Normally the exception should be "StorageNotAvailableException" but for some reason the local code didn't properly detect the unavailability of the remote. We should probably catch any XML parse error too and interpret them as "storage not available". Still, I'd like to know your target ownCloud's setup (and in what way did you make the target folder appear unavailable) |
Am able to reproduce this on master too against an ownCloud EE with expired license.
This is very wrong. It should return the list instead. |
Fix for master is here: #15521 I'll prepare one for stable8 it too, it will probably be different because we didn't use Guzzle there. |
@jvillafanez how did you mount it ? Did you use server to server share or did you use "add to ownCloud" from a public link ? I cannot reproduce the issue on stable8 / 8.0.3 RC1. I suspect that in your case it's a slightly different code path, maybe from when the share wasn't scanned yet or something. |
Still cannot reproduce the reported issue on stable8. Maybe the response of your backend server is different than mine. What version were you using there ? |
@PVince81 I added it in OC 8.0.3RC1 using the "add to ownCloud" from public link. The source file is in OC 7.0.5. Maybe the 7.0.5 server returns something wrong. |
Looks like it, I was able to reproduce it when connecting to a OC 7 EE server with invalid license. |
I have a fix for master: #15530 I'll try and backport it to stable8 but it will need more changes as we neither had Guzzle nor Sabre 2.1 exceptions. |
stable8 fix here: #15533 |
WIll be closed once it is in stable8 |
Steps to reproduce
Also checked with
curl -u <username>:<password> -X PROPFIND -H "Content-Type: text/xml" -d "<?xml version='1.0' encoding='utf-8' ?><D:propfind xmlns:D='DAV:'><D:allprop/></D:propfind>" <owncloud-server-url>/remote.php/webdav/
Expected behaviour
Valid webdav response
Actual behaviour
Internal error
Server configuration
Operating system: ubuntu 14.04
Web server: apache 2.4.7
Database: mysql
PHP version: 5.5.4
ownCloud version: OC 8.0.3RC1
Updated from an older ownCloud or fresh install: fresh install
Logs
ownCloud log (data/owncloud.log)
PROPFIND response
Notes
This bug is preventing the correct functions of mobile apps, and probably the desktop apps
The text was updated successfully, but these errors were encountered: