Skip to content
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

Error page is missing, just a xml appear. #23500

Closed
SergioBertolinSG opened this issue Mar 23, 2016 · 7 comments · Fixed by #23557
Closed

Error page is missing, just a xml appear. #23500

SergioBertolinSG opened this issue Mar 23, 2016 · 7 comments · Fixed by #23557

Comments

@SergioBertolinSG
Copy link
Contributor

Steps to reproduce

  1. Recreate an error situation, for example try to access to encrypted files without encryption app enabled, or make firewall (EE) block access from a specific user agent and access using that user agent.

Expected behaviour

Error page appears.

Actual behaviour

An xml is returned.

Example while trying to open an encrypted file without encryption enabled:
screen shot 2016-03-23 at 09 14 50

Server configuration

Operating system:
Ubuntu 14.04

Web server:
Apache

Database:
MySQL

PHP version:
5.5.9

ownCloud version: (see ownCloud admin page)
{"installed":true,"maintenance":false,"version":"9.0.1.0","versionstring":"9.0.1 beta","edition":""}

Updated from an older ownCloud or fresh install:
Fresh

The content of config/config.php:


Are you using external storage, if yes which one: local/smb/sftp/...
No.

Are you using encryption:
No.

Logs

{"reqId":"0V0fSwdCSmGNacysgO7n","remoteAddr":"HIDDEN_IP","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Encryption not ready: Module with id: OC_DEFAULT_MODULE does not exist.\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 \\\/opt\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(83): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->get()\\n#1 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpGet(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#2 \\\/opt\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#3 \\\/opt\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:GET', Array)\\n#4 \\\/opt\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/opt\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(55): Sabre\\\\DAV\\\\Server->exec()\\n#6 \\\/opt\\\/owncloud\\\/remote.php(138): require_once('\\\/opt\\\/owncloud\\\/a...')\\n#7 {main}\",\"File\":\"\\\/opt\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/connector\\\/sabre\\\/file.php\",\"Line\":311,\"User\":\"admin\"}","level":4,"time":"2016-03-23T08:25:59+00:00"}

Client configuration

browser
Chrome

@SergioBertolinSG SergioBertolinSG added this to the 9.0.1-current-maintenance milestone Mar 23, 2016
@SergioBertolinSG
Copy link
Contributor Author

Reported previously in firewall, but it is more general: https://github.com/owncloud/firewall/issues/237

@PVince81
Copy link
Contributor

How did you access the file ? Web UI download ? Where did you click ?
This is important to find out which mechanism is used.

Since you're getting XML, I guess that you clicked on a single file download link which leads to the Webdav endpoint.

Hmmmm... it feels wrong to have the Webdav endpoint detect whether the download comes from the browser to show an error page.

@PVince81 PVince81 self-assigned this Mar 23, 2016
@PVince81
Copy link
Contributor

A quick workaround would be to switch back to use "ajax/download.php"...

@PVince81
Copy link
Contributor

I decided to revert back to ajax/download.php, PR is here: #23521

@PVince81
Copy link
Contributor

Something to try: do a HEAD request with $.ajax before starting the download.

@PVince81
Copy link
Contributor

@DeepDiver1975 offered to have a look adding a Sabre plugin to return HTML contents.
Assigning to you, thanks!

@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.