-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(dav): Always respond custom error page on exceptions #47770
fix(dav): Always respond custom error page on exceptions #47770
Conversation
} else { | ||
$templateName = 'xml_exception'; | ||
$renderAs = null; | ||
$this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8'); |
Check notice
Code scanning / Psalm
PossiblyNullPropertyFetch Note
} else { | ||
$templateName = 'xml_exception'; | ||
$renderAs = null; | ||
$this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8'); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
$content = new OC_Template('core', $templateName, 'guest'); | ||
$debug = $this->config->getSystemValueBool('debug', false); | ||
|
||
$content = new OC_Template('core', $templateName, $renderAs); |
Check notice
Code scanning / Psalm
PossiblyNullArgument Note
1624a63
to
330d1b3
Compare
if (BrowserErrorPagePlugin::isBrowserRequest($request)) { | ||
$this->server->addPlugin(new BrowserErrorPagePlugin()); | ||
} | ||
$this->server->addPlugin(new ErrorPagePlugin($this->request, \OC::$server->getConfig())); |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
008d0ff
to
fc0ea7a
Compare
Signed-off-by: Louis Chemineau <louis@chmn.me>
fc0ea7a
to
9992e7d
Compare
/backport to stable30 |
/backport to stable29 |
/backport to stable28 |
In order to match what we are doing with regular controlers.