TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692018-11-07T17:11:12ZTYPO3 Forge
Redmine TYPO3 Core - Bug #86878 (Closed): Missing typecast in UploadedFileReferenceConverter when importi...http://forge.typo3.org/issues/868782018-11-07T17:11:12ZSaskia Schreiber
<p>There seems to be a missing typecast in <em>UploadedFileReferenceConverter->importUploadedResource()</em> (<a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/a36d3dab92aa48b7d415dbaced5ba69f8722f38c/typo3/sysext/form/Classes/Mvc/Property/TypeConverter/UploadedFileReferenceConverter.php#L222">https://github.com/TYPO3/TYPO3.CMS/blob/a36d3dab92aa48b7d415dbaced5ba69f8722f38c/typo3/sysext/form/Classes/Mvc/Property/TypeConverter/UploadedFileReferenceConverter.php#L222</a>).</p>
<p>If there is a valid FileReference resourcePointer, <em>$hashService->validateAndStripHmac</em> is called which returns a string ID (f.ex. '23'). <em>$this->createFileReferenceFromFalFileObject</em> which is called next expects int as type, which leads to an exception.</p>
<p>In my local patch I fixed this with adding a typecast in line 221 ($resourcePointer = $resourcePointer ? (int)$resourcePointer : null;) if the resourcePointer is available.<br />Casting directly to int would lead to undesired casts from null to 0.</p>
<p>This bug may not cause any problems in direct usage, I found it while using the TypeConverter in combination with a custom extbase/fluid image upload.</p> TYPO3 Core - Task #84353 (Closed): Decouple TreeController from UserSettingsControllerhttp://forge.typo3.org/issues/843532018-03-16T16:14:19ZSaskia SchreiberTYPO3 Core - Bug #84342 (Closed): Error in record info when displaying referenceshttp://forge.typo3.org/issues/843422018-03-16T13:07:45ZSaskia Schreiber
<p>After the PSR 7 rewrite of the ElementInformationController an error occurs when references are to display:</p>
<pre><code class="php syntaxhl" data-language="php"><span class="nc">Argument</span> <span class="mi">3</span> <span class="n">passed</span> <span class="n">to</span> <span class="nc">TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController</span><span class="o">::</span><span class="nf">getRecordActions</span><span class="p">()</span> <span class="n">must</span> <span class="n">implement</span> <span class="kd">interface</span> <span class="nc">Psr\Http\Message\ServerRequestInterface</span><span class="p">,</span> <span class="n">string</span> <span class="n">given</span><span class="p">,</span> <span class="n">called</span> <span class="n">in</span> <span class="o">/</span><span class="k">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">typo3</span><span class="o">/</span><span class="n">sysext</span><span class="o">/</span><span class="n">backend</span><span class="o">/</span><span class="nc">Classes</span><span class="o">/</span><span class="nc">Controller</span><span class="o">/</span><span class="nc">ContentElement</span><span class="o">/</span><span class="nc">ElementInformationController</span><span class="mf">.</span><span class="n">php</span> <span class="n">on</span> <span class="n">line</span> <span class="mi">709</span>
</code></pre> TYPO3 Core - Feature #82619 (Closed): Equivalent of old DatabaseConnection hooks in the new DBALhttp://forge.typo3.org/issues/826192017-09-29T11:23:14ZSaskia Schreiber
<p>Is there a chance to get an equivalent to the old postProcessAction hooks in the new Connection class?</p>
<p>I'm aware of the ConnectionPool wrapperClass feature, however this is not a solution extensions could use (think of search indexers, third-party interfaces etc.).<br />Doctrine itself also does not provide an entry point - only via Loggers, quite uncomfortable as the query is already parsed there.</p>