From nextcloud/server#14330 (comment)
@juliushaertl @rullzer mind to have a look? This is a regression from nextcloud/server#8051
If you try to return an exception like in the DocumentController you override the name of the template with the error class.
|
$params = [ |
|
'remoteAddr' => $this->request->getRemoteAddress(), |
|
'requestID' => $this->request->getId(), |
|
'debugMode' => $this->settings->getSystemValue('debug'), |
|
'errorClass' => get_class($e), |
|
'errorCode' => $e->getCode(), |
|
'errorMsg' => $e->getMessage(), |
|
'file' => $e->getFile(), |
|
'line' => $e->getLine(), |
|
'trace' => $e->getTraceAsString() |
|
]; |
|
return new TemplateResponse('core', 'exception', $params, 'guest'); |
https://github.com/nextcloud/server/blob/3f4941e48aead48bacc7077e2819b492d1394778/lib/private/Template/Base.php#L162-L188


If we pass file as additionalParams the value $file (which should be the name of the template) is overriden. We try to use CurlFactory as error template than.
From nextcloud/server#14330 (comment)
@juliushaertl @rullzer mind to have a look? This is a regression from nextcloud/server#8051
If you try to return an exception like in the DocumentController you override the name of the template with the error class.
richdocuments/lib/Controller/DocumentController.php
Lines 215 to 226 in 6b8bea5
https://github.com/nextcloud/server/blob/3f4941e48aead48bacc7077e2819b492d1394778/lib/private/Template/Base.php#L162-L188
If we pass
fileas additionalParams the value$file(which should be the name of the template) is overriden. We try to useCurlFactoryas error template than.