Bug #91107

InstallTool Login Mail causes Exception when using a custom backend login logo

Added by Benjamin Franzke 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
Start date:
2020-04-18
Due date:
% Done:

100%

TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

This bug was discovered by Josef Glatz and orignally reported via Slack:

1. install.php throws also error and the typical "clear caches in maintenance tools to fix dependency container stuff" doesn't work (anymore). Too few arguments to function TYPO3\CMS\Core\Resource\Index\MetaDataRepository::__construct(), 0 passed in /app/web/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3425 and exactly 1 expected (error log entry)
2. Doing a reload twice does fixing the problem for me and the maintenace tools seems to work

This causes an exception when logging into the installtool:

Sat, 18 Apr 2020 06:59:49 +0200 [CRITICAL] request="f5f9c72de32f0" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB): Uncaught TYPO3 Exception: Too few arguments to function TYPO3\CMS\Core\Resource\Index\MetaDataRepository::__construct(), 0 passed in /app/web/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3425 and exactly 1 expected | ArgumentCountError thrown in file /app/web/typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php in line 58. Requested URL: http://10.master.t3.docker/typo3/install.php?install[controller]=maintenance - {"TYPO3_MODE":"BE","exception":{"xdebug_message":"<tr><th align='left' bgcolor='#f57900' colspan=\"5\"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> ArgumentCountError: Too few arguments to function TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository::__construct(), 0 passed in /app/web/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3425 and exactly 1 expected in /app/web/typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php on line <i>58</i></th></tr>\n<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>\n<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>\n<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0042</td><td bgcolor='#eeeeec' align='right'>412240</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/app/web/typo3/install.php' bgcolor='#eeeeec'>.../install.php<b>:</b>0</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0042</td><td bgcolor='#eeeeec' align='right'>412560</td><td bgcolor='#eeeeec'>{closure:/app/web/typo3/install.php:101-105}(  )</td><td title='/app/web/typo3/install.php' bgcolor='#eeeeec'>.../install.php<b>:</b>105</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.3162</td><td bgcolor='#eeeeec' align='right'>1645368</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Install\\Http\\Application->run(  )</td><td title='/app/web/typo3/install.php' bgcolor='#eeeeec'>.../install.php<b>:</b>104</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.3292</td><td bgcolor='#eeeeec' align='right'>1674592</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Install\\Http\\Application->handle(  )</td><td title='/app/web/typo3/sysext/core/Classes/Http/AbstractApplication.php' bgcolor='#eeeeec'>.../AbstractApplication.php<b>:</b>97</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.3309</td><td bgcolor='#eeeeec' align='right'>1680480</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Install\\Http\\Application->handle(  )</td><td title='/app/web/typo3/sysext/install/Classes/Http/Application.php' bgcolor='#eeeeec'>.../Application.php<b>:</b>50</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.3309</td><td bgcolor='#eeeeec' align='right'>1680480</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle(  )</td><td title='/app/web/typo3/sysext/core/Classes/Http/AbstractApplication.php' bgcolor='#eeeeec'>.../AbstractApplication.php<b>:</b>85</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.3309</td><td bgcolor='#eeeeec' align='right'>1680480</td><td bgcolor='#eeeeec'>{anonymous-class:/app/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138-174}->handle(  )</td><td title='/app/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>78</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>8</td><td bgcolor='#eeeeec' align='center'>0.3315</td><td bgcolor='#eeeeec' align='right'>1746704</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process(  )</td><td title='/app/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>172</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>9</td><td bgcolor='#eeeeec' align='center'>0.3320</td><td bgcolor='#eeeeec' align='right'>1752928</td><td bgcolor='#eeeeec'>{anonymous-class:/app/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:103-123}->handle(  )</td><td title='/app/web/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php' bgcolor='#eeeeec'>.../NormalizedParamsAttribute.php<b>:</b>45</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>10</td><td bgcolor='#eeeeec' align='center'>0.3320</td><td bgcolor='#eeeeec' align='right'>1752928</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Install\\Middleware\\Maintenance->process(  )</td><td title='/app/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php' bgcolor='#eeeeec'>.../MiddlewareDispatcher.php<b>:</b>121</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>11</td><td bgcolor='#eeeeec' align='center'>0.5290</td><td bgcolor='#eeeeec' align='right'>1785808</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Install\\Authentication\\AuthenticationService->loginWithPassword(  )</td><td title='/app/web/typo3/sysext/install/Classes/Middleware/Maintenance.php' bgcolor='#eeeeec'>.../Maintenance.php<b>:</b>169</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>12</td><td bgcolor='#eeeeec' align='center'>1.5139</td><td bgcolor='#eeeeec' align='right'>1859944</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Install\\Authentication\\AuthenticationService->sendLoginSuccessfulMail(  )</td><td title='/app/web/typo3/sysext/install/Classes/Authentication/AuthenticationService.php' bgcolor='#eeeeec'>.../AuthenticationService.php<b>:</b>77</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>13</td><td bgcolor='#eeeeec' align='center'>3.3808</td><td bgcolor='#eeeeec' align='right'>3553576</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Mail\\Mailer->send(  )</td><td title='/app/web/typo3/sysext/install/Classes/Authentication/AuthenticationService.php' bgcolor='#eeeeec'>.../AuthenticationService.php<b>:</b>102</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>14</td><td bgcolor='#eeeeec' align='center'>3.3809</td><td bgcolor='#eeeeec' align='right'>3554120</td><td bgcolor='#eeeeec'>Symfony\\Component\\Mailer\\Transport\\SendmailTransport->send(  )</td><td title='/app/web/typo3/sysext/core/Classes/Mail/Mailer.php' bgcolor='#eeeeec'>.../Mailer.php<b>:</b>125</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>15</td><td bgcolor='#eeeeec' align='center'>3.3809</td><td bgcolor='#eeeeec' align='right'>3554120</td><td bgcolor='#eeeeec'>Symfony\\Component\\Mailer\\Transport\\SendmailTransport->send(  )</td><td title='/app/web/vendor/symfony/mailer/Transport/SendmailTransport.php' bgcolor='#eeeeec'>.../SendmailTransport.php<b>:</b>73</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>16</td><td bgcolor='#eeeeec' align='center'>3.4180</td><td bgcolor='#eeeeec' align='right'>3560832</td><td bgcolor='#eeeeec'>Symfony\\Component\\Mailer\\SentMessage->__construct(  )</td><td title='/app/web/vendor/symfony/mailer/Transport/AbstractTransport.php' bgcolor='#eeeeec'>.../AbstractTransport.php<b>:</b>70</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>17</td><td bgcolor='#eeeeec' align='center'>3.4180</td><td bgcolor='#eeeeec' align='right'>3560832</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Mail\\FluidEmail->ensureValidity(  )</td><td title='/app/web/vendor/symfony/mailer/SentMessage.php' bgcolor='#eeeeec'>.../SentMessage.php<b>:</b>33</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>18</td><td bgcolor='#eeeeec' align='center'>3.4180</td><td bgcolor='#eeeeec' align='right'>3560832</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Mail\\FluidEmail->generateTemplatedBody(  )</td><td title='/app/web/typo3/sysext/core/Classes/Mail/FluidEmail.php' bgcolor='#eeeeec'>.../FluidEmail.php<b>:</b>136</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>19</td><td bgcolor='#eeeeec' align='center'>3.4180</td><td bgcolor='#eeeeec' align='right'>3560832</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Mail\\FluidEmail->renderContent(  )</td><td title='/app/web/typo3/sysext/core/Classes/Mail/FluidEmail.php' bgcolor='#eeeeec'>.../FluidEmail.php<b>:</b>149</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>20</td><td bgcolor='#eeeeec' align='center'>3.4181</td><td bgcolor='#eeeeec' align='right'>3560856</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Fluid\\View\\StandaloneView->render(  )</td><td title='/app/web/typo3/sysext/core/Classes/Mail/FluidEmail.php' bgcolor='#eeeeec'>.../FluidEmail.php<b>:</b>169</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>21</td><td bgcolor='#eeeeec' align='center'>5.0315</td><td bgcolor='#eeeeec' align='right'>4842648</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\ParsingState->render(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/View/AbstractTemplateView.php' bgcolor='#eeeeec'>.../AbstractTemplateView.php<b>:</b>201</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>22</td><td bgcolor='#eeeeec' align='center'>5.0315</td><td bgcolor='#eeeeec' align='right'>4842648</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode->evaluate(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/ParsingState.php' bgcolor='#eeeeec'>.../ParsingState.php<b>:</b>119</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>23</td><td bgcolor='#eeeeec' align='center'>5.0315</td><td bgcolor='#eeeeec' align='right'>4842648</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode->evaluateChildNodes(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/RootNode.php' bgcolor='#eeeeec'>.../RootNode.php<b>:</b>25</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>24</td><td bgcolor='#eeeeec' align='center'>5.0326</td><td bgcolor='#eeeeec' align='right'>4845976</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\RootNode->evaluateChildNode(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php' bgcolor='#eeeeec'>.../AbstractNode.php<b>:</b>36</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>25</td><td bgcolor='#eeeeec' align='center'>5.0326</td><td bgcolor='#eeeeec' align='right'>4845976</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php' bgcolor='#eeeeec'>.../AbstractNode.php<b>:</b>56</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>26</td><td bgcolor='#eeeeec' align='center'>5.0326</td><td bgcolor='#eeeeec' align='right'>4845976</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php' bgcolor='#eeeeec'>.../ViewHelperNode.php<b>:</b>153</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>27</td><td bgcolor='#eeeeec' align='center'>5.0327</td><td bgcolor='#eeeeec' align='right'>4846352</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\IfViewHelper->initializeArgumentsAndRender(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php' bgcolor='#eeeeec'>.../ViewHelperInvoker.php<b>:</b>79</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>28</td><td bgcolor='#eeeeec' align='center'>5.0327</td><td bgcolor='#eeeeec' align='right'>4846352</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\IfViewHelper->callRenderMethod(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>250</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>29</td><td bgcolor='#eeeeec' align='center'>5.0327</td><td bgcolor='#eeeeec' align='right'>4846728</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php:262}' target='_new'>call_user_func:{/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php:262}</a>\n(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>262</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>30</td><td bgcolor='#eeeeec' align='center'>5.0327</td><td bgcolor='#eeeeec' align='right'>4846728</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\IfViewHelper->render(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>262</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>31</td><td bgcolor='#eeeeec' align='center'>5.0327</td><td bgcolor='#eeeeec' align='right'>4846728</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\IfViewHelper->renderElseChild(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractConditionViewHelper.php' bgcolor='#eeeeec'>.../AbstractConditionViewHelper.php<b>:</b>62</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>32</td><td bgcolor='#eeeeec' align='center'>5.0328</td><td bgcolor='#eeeeec' align='right'>4846728</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractConditionViewHelper.php' bgcolor='#eeeeec'>.../AbstractConditionViewHelper.php<b>:</b>203</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>33</td><td bgcolor='#eeeeec' align='center'>5.0328</td><td bgcolor='#eeeeec' align='right'>4846728</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php' bgcolor='#eeeeec'>.../ViewHelperNode.php<b>:</b>153</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>34</td><td bgcolor='#eeeeec' align='center'>5.0329</td><td bgcolor='#eeeeec' align='right'>4847104</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\ElseViewHelper->initializeArgumentsAndRender(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php' bgcolor='#eeeeec'>.../ViewHelperInvoker.php<b>:</b>79</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>35</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847104</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\ElseViewHelper->callRenderMethod(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>250</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>36</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847480</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php:262}' target='_new'>call_user_func:{/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php:262}</a>\n(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>262</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>37</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847480</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\ElseViewHelper->render(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>262</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>38</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847480</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\ViewHelpers\\ElseViewHelper->renderChildren(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/ViewHelpers/ElseViewHelper.php' bgcolor='#eeeeec'>.../ElseViewHelper.php<b>:</b>55</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>39</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847480</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluateChildNodes(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>304</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>40</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847856</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluateChildNode(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php' bgcolor='#eeeeec'>.../AbstractNode.php<b>:</b>36</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>41</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847856</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode->evaluate(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php' bgcolor='#eeeeec'>.../AbstractNode.php<b>:</b>56</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>42</td><td bgcolor='#eeeeec' align='center'>5.0330</td><td bgcolor='#eeeeec' align='right'>4847856</td><td bgcolor='#eeeeec'>TYPO3Fluid\\Fluid\\Core\\ViewHelper\\ViewHelperInvoker->invoke(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/ViewHelperNode.php' bgcolor='#eeeeec'>.../ViewHelperNode.php<b>:</b>153</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>43</td><td bgcolor='#eeeeec' align='center'>5.0332</td><td bgcolor='#eeeeec' align='right'>4849192</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Fluid\\ViewHelpers\\ImageViewHelper->initializeArgumentsAndRender(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php' bgcolor='#eeeeec'>.../ViewHelperInvoker.php<b>:</b>79</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>44</td><td bgcolor='#eeeeec' align='center'>5.0333</td><td bgcolor='#eeeeec' align='right'>4850048</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Fluid\\ViewHelpers\\ImageViewHelper->callRenderMethod(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>250</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>45</td><td bgcolor='#eeeeec' align='center'>5.0333</td><td bgcolor='#eeeeec' align='right'>4850424</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.call-user-func:{/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php:262}' target='_new'>call_user_func:{/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php:262}</a>\n(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>262</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>46</td><td bgcolor='#eeeeec' align='center'>5.0333</td><td bgcolor='#eeeeec' align='right'>4850424</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Fluid\\ViewHelpers\\ImageViewHelper->render(  )</td><td title='/app/web/vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractViewHelper.php' bgcolor='#eeeeec'>.../AbstractViewHelper.php<b>:</b>262</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>47</td><td bgcolor='#eeeeec' align='center'>5.0334</td><td bgcolor='#eeeeec' align='right'>4850424</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Extbase\\Service\\ImageService->getImage(  )</td><td title='/app/web/typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php' bgcolor='#eeeeec'>.../ImageViewHelper.php<b>:</b>165</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>48</td><td bgcolor='#eeeeec' align='center'>5.0334</td><td bgcolor='#eeeeec' align='right'>4850424</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Extbase\\Service\\ImageService->getImageFromSourceString(  )</td><td title='/app/web/typo3/sysext/extbase/Classes/Service/ImageService.php' bgcolor='#eeeeec'>.../ImageService.php<b>:</b>131</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>49</td><td bgcolor='#eeeeec' align='center'>5.0340</td><td bgcolor='#eeeeec' align='right'>4851032</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\ResourceFactory->retrieveFileOrFolderObject(  )</td><td title='/app/web/typo3/sysext/extbase/Classes/Service/ImageService.php' bgcolor='#eeeeec'>.../ImageService.php<b>:</b>169</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>50</td><td bgcolor='#eeeeec' align='center'>5.0342</td><td bgcolor='#eeeeec' align='right'>4851160</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\ResourceFactory->getFileObjectFromCombinedIdentifier(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/ResourceFactory.php' bgcolor='#eeeeec'>.../ResourceFactory.php<b>:</b>482</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>51</td><td bgcolor='#eeeeec' align='center'>5.0342</td><td bgcolor='#eeeeec' align='right'>4851560</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\ResourceFactory->getFileObjectByStorageAndIdentifier(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/ResourceFactory.php' bgcolor='#eeeeec'>.../ResourceFactory.php<b>:</b>407</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>52</td><td bgcolor='#eeeeec' align='center'>5.3312</td><td bgcolor='#eeeeec' align='right'>5700728</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\Index\\Indexer->createIndexEntry(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/ResourceFactory.php' bgcolor='#eeeeec'>.../ResourceFactory.php<b>:</b>425</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>53</td><td bgcolor='#eeeeec' align='center'>5.4499</td><td bgcolor='#eeeeec' align='right'>5792112</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\MetaDataAspect->save(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/Index/Indexer.php' bgcolor='#eeeeec'>.../Indexer.php<b>:</b>90</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>54</td><td bgcolor='#eeeeec' align='center'>5.4499</td><td bgcolor='#eeeeec' align='right'>5792112</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\MetaDataAspect->loadFromRepository(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/MetaDataAspect.php' bgcolor='#eeeeec'>.../MetaDataAspect.php<b>:</b>186</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>55</td><td bgcolor='#eeeeec' align='center'>5.4499</td><td bgcolor='#eeeeec' align='right'>5792112</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\MetaDataAspect->getMetaDataRepository(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/MetaDataAspect.php' bgcolor='#eeeeec'>.../MetaDataAspect.php<b>:</b>219</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>56</td><td bgcolor='#eeeeec' align='center'>5.4499</td><td bgcolor='#eeeeec' align='right'>5792112</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(  )</td><td title='/app/web/typo3/sysext/core/Classes/Resource/MetaDataAspect.php' bgcolor='#eeeeec'>.../MetaDataAspect.php<b>:</b>211</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>57</td><td bgcolor='#eeeeec' align='center'>5.4525</td><td bgcolor='#eeeeec' align='right'>5793392</td><td bgcolor='#eeeeec'>TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository->__construct(  )</td><td title='/app/web/typo3/sysext/core/Classes/Utility/GeneralUtility.php' bgcolor='#eeeeec'>.../GeneralUtility.php<b>:</b>3425</td></tr>\n"}}

My current analysis shows:

The installtool sends a mail when a login happens (when TYPO3_CONF_VARS.BE.warning_email_addr is set).
FludiEmail is used for this task. The templates rely on the f:image viewhelper to render a custom login logo (set via TYP
O3_CONF_VARS.EXTENSIONS.backend.loginLogo).
The f:image ViehHelper uses File Objects, which use MetaDataAspect, which rely on the MetaDataRepository.

We should probably provide MetaDataRepository via Failsafe container in the installtool. In the recent patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/64205 we assumed mails would only be sent in the "Mail check" from install tool, but "thanks" to TYPO3_CONF_VARS.BE.warning_email_addr we need to provide full mail sending support in failsafe mode.

Attached is a screenshot of the rendered trace (I managed to reproduce Josef's report).

Bildschirmfoto von 2020-04-18 13-28-18.png View (2.22 MB) Benjamin Franzke, 2020-04-18 13:41

Associated revisions

Revision 36b4e32f (diff)
Added by Benjamin Franzke 3 months ago

[BUGIX] Register MetaDataRepository via service provider

The installtool sends a mail when a login happens when
TYPO3_CONF_VARS.BE.warning_email_addr is set.
When TYPO3_CONF_VARS.EXTENSIONS.backend.loginLogo is set
to provide a custom backend logo, that logo is used by
the FluidEmail template via f:image viewhelper.

Therefore we need to provide MetaDataRepository,
as the f:image viewhelper will use that service.
The (implicit) dependency chain is:

&lt;f:image&gt;
-> Resource\File
-> MetaDataAspect
-> MetaDataRepository

Releases: master
Resolves: #91107
Related: #89892
Change-Id: If4e73d607d2a6e21646ea91bd8f0a39742f133d4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64236
Tested-by: TYPO3com <>
Tested-by: Jonas Eberle <>
Tested-by: Alexander Schnitzler <>
Tested-by: Georg Ringer <>
Reviewed-by: Alexander Schnitzler <>
Reviewed-by: Georg Ringer <>

History

#1 Updated by Gerrit Code Review 3 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64236

#2 Updated by Benjamin Franzke 3 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#3 Updated by Benni Mack 3 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF