TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692024-02-06T08:00:24ZTYPO3 Forge
Redmine TYPO3 Core - Bug #103056 (Closed): The extension scanner does not report "Breaking: #96641 - Typo...http://forge.typo3.org/issues/1030562024-02-06T08:00:24ZDaniel Siepmanncoding@daniel-siepmann.de
<p>The change log entry can be found at: <a class="external" href="https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-96641-TypoLinkRelatedHooksRemoved.html">https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-96641-TypoLinkRelatedHooksRemoved.html</a></p>
<p>I'd expect the scanner to report a strong match for those two occurences:</p>
<pre>
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'][$extKey] = \Vendor\OurKey\LinkBuilding\CustomCssClassBasedOnType::class . '->process';
</pre>
<p>And:</p>
<pre>
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TYPO3_CONF_VARS'], [
'SC_OPTIONS' => [
'tslib/class.tslib_content.php' => [
'typoLink_PostProc' => [
$extKey => \Vendor\OurKey\LinkBuilding\CustomCssClassBasedOnType::class . '->process',
],
],
],
]);
</pre>
<p>Neither is reported.</p> TYPO3 Core - Bug #102573 (New): TypeError: strcasecmp(): Argument #1 ($string1) must be of type s...http://forge.typo3.org/issues/1025732023-11-30T14:27:24ZDaniel Siepmanncoding@daniel-siepmann.de
<p>The TYPO3 API does not state that ArrayUtility::sortArraysByKey() should only work for strings. One can expect it to work with integers as well.</p>
<p>But the given code leads to an type error:</p>
<pre>
\TYPO3\CMS\Core\Utility\ArrayUtility::sortArraysByKey([
[
'key' => 10,
],
[
'key' => 11,
],
], 'key');
</pre>
<p>I'd either expect it to working, or a proper note in PHPDoc and type check upfront.<br />The issue occurs in TYPO3 v12, not in v11. Probably due to the added <code>strict_types=1</code>.</p> TYPO3 Core - Bug #100742 (Resolved): PHP Warning: Undefined array key "conf" in /vendor/typo3/cms...http://forge.typo3.org/issues/1007422023-04-25T08:09:51ZDaniel Siepmanncoding@daniel-siepmann.de
<p>Steps to reproduce:</p>
<ol>
<li>Enable Admin Panel</li>
<li>Open Admin Panel in Frontend</li>
<li>A PHP Warning should be shown that array key "conf" is undefined</li>
</ol> TYPO3 Core - Bug #100456 (Resolved): Don't report AdminPanel usages to CSPhttp://forge.typo3.org/issues/1004562023-04-05T07:40:30ZDaniel Siepmanncoding@daniel-siepmann.de
<p>I guess this relates to the usage of symfony var dumper for "Events" tab within "Debug" panel.</p>
<p>Steps to reproduce:</p>
<ol>
<li>Enable CSP feature toggle for frontend</li>
<li>Install Admin Panel</li>
<li>Enable Admin Panel for User in Frontend</li>
<li>Open Admin Panel (It won't do anything without being opened / toggled)</li>
<li>Open CSP Backend Module, it should have three entries <img src="http://forge.typo3.org/attachments/download/37571/clipboard-202304050939-k2gei.png" alt="" loading="lazy" /></li>
</ol> TYPO3 Core - Bug #99289 (Closed): Can no longer create scheduler task due to "The end date is bef...http://forge.typo3.org/issues/992892022-12-06T13:56:27ZDaniel Siepmanncoding@daniel-siepmann.de
<p>It was possible to create scheduler tasks via backend module without an end date.<br />This doesn't seem to be possible in 12.1.0 any longer.<br />Submitting the form with default dates (current start and empty end) will result in an error "The end date is before the start date." and an filles end date which is equal start date.</p> TYPO3 Core - Bug #99288 (Closed): PHP Warning: Undefined array key "os" in vendor/typo3/cms-core...http://forge.typo3.org/issues/992882022-12-06T13:19:55ZDaniel Siepmanncoding@daniel-siepmann.de
<p>Current 12.1.0, e.g. while calling `./vendor/bin/typo3 cache:flush`</p> TYPO3 Core - Bug #99287 (Under Review): Request missing for StandardContentPreviewRenderer Viewhttp://forge.typo3.org/issues/992872022-12-06T13:10:30ZDaniel Siepmanncoding@daniel-siepmann.de
<p>Integrators are able to configure a custom Fluid template per content element.<br />This template is rendered via StandardContentPreviewRenderer.</p>
<p>Integrators can use the Uri/EditRecordViewHelper which will break unless the Request is provided by Rendering Context, leading to:</p>
<pre>
(1/1) Error
Call to a member function getAttribute() on null
in /project/vendor/typo3/cms-backend/Classes/ViewHelpers/Uri/EditRecordViewHelper.php line 77
}
if (empty($arguments['returnUrl'])) {
/** @var RenderingContext $renderingContext */
$request = $renderingContext->getRequest();
$arguments['returnUrl'] = $request->getAttribute('normalizedParams')->getRequestUri();
}
$params = [
'edit' => [$arguments['table'] => [$arguments['uid'] => 'edit']],
</pre> TYPO3 Core - Bug #99280 (Closed): TYPO3 conf var can be boolean but is expected to be stringhttp://forge.typo3.org/issues/992802022-12-06T07:02:58ZDaniel Siepmanncoding@daniel-siepmann.de
<pre>
(1/1) TypeError
strtolower(): Argument #1 ($string) must be of type string, bool given
</pre>
<p><a class="external" href="https://github.com/TYPO3/typo3/blob/v12.0.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L2140">https://github.com/TYPO3/typo3/blob/v12.0.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L2140</a></p> TYPO3 Core - Bug #99278 (Closed): TYPO3 says one should create a file within typo3conf which no l...http://forge.typo3.org/issues/992782022-12-05T16:35:54ZDaniel Siepmanncoding@daniel-siepmann.de
<p>Opening the Install Tool on a v12 displays a messages:</p>
<blockquote>
<p>The Install Tool is locked</p>
<p>To enable the Install Tool, the file ENABLE_INSTALL_TOOL must be created in the directory typo3conf/. The file must be writable by the web server user. The filename is case-sensitive but the file itself can be empty.</p>
<p>Security note: When you are finished with the Install Tool, you should rename or delete this file. It will automatically be deleted if you log out of the Install Tool or if the file is older than one hour.</p>
</blockquote>
<p>But there is no more typo3conf/ within the installation. The code also still points to the folder: <a class="external" href="https://github.com/TYPO3/typo3/blob/main/typo3/sysext/install/Classes/Service/EnableFileService.php#L30">https://github.com/TYPO3/typo3/blob/main/typo3/sysext/install/Classes/Service/EnableFileService.php#L30</a></p>
<p>One can create the folder with file within `public/` but I don't think that's how it should be.</p> TYPO3 Core - Bug #98421 (Closed): PHP Warning: Undefined array key "xyz" in TimeTracker line xyzhttp://forge.typo3.org/issues/984212022-09-22T13:08:42ZDaniel Siepmanncoding@daniel-siepmann.de
<p>There are some unprotected array accesses.</p> TYPO3 Core - Bug #98418 (Closed): PHP Warning: Undefined property: TYPO3\CMS\Frontend\Controller\...http://forge.typo3.org/issues/984182022-09-22T11:52:46ZDaniel Siepmanncoding@daniel-siepmann.de
<pre>
return $this->$propertyName;
</pre> TYPO3 Core - Bug #98414 (Closed): PHP Warning: Undefined array key "typoLinkParameter" in PageLin...http://forge.typo3.org/issues/984142022-09-22T11:21:28ZDaniel Siepmanncoding@daniel-siepmann.de
<pre>
throw new UnableToLinkException('Fallback to default language of page "' . $linkDetails['typoLinkParameter'] . '" is disabled, so "' . $linkText . '" was not linked.', 1551621996, null, $linkText);
</pre> TYPO3 Core - Bug #98412 (Closed): PHP Warning: Undefined array key "xyz" in ProcessedFilehttp://forge.typo3.org/issues/984122022-09-22T11:16:52ZDaniel Siepmanncoding@daniel-siepmann.de
<pre>
public function getProperty($key)
{
// The uid always (!) has to come from this file and never the original file (see getOriginalFile() to get this)
if ($this->isUnchanged() && $key !== 'uid') {
return $this->originalFile->getProperty($key);
}
return $this->properties[$key];
}
</pre> TYPO3 Core - Bug #98406 (Closed): PHP Warning: Undefined array key X in AbstractItemProviderhttp://forge.typo3.org/issues/984062022-09-22T09:54:21ZDaniel Siepmanncoding@daniel-siepmann.de
<p>There are three some cases where keys are accessed without checking if they exist.</p>
<pre>
$rowFieldValue = $rowFieldValue[0]['uid'] ?? $rowFieldValue[0];
</pre>
<pre>
$label = $languageService->sL(trim($item[0]));
</pre>
<pre>
$value = strlen((string)$item[1]) > 0 ? $item[1] : '';
</pre> TYPO3 Core - Bug #98404 (Closed): PHP Warning: Undefined array key "sys_language_uid" in PageRepo...http://forge.typo3.org/issues/984042022-09-22T08:34:32ZDaniel Siepmanncoding@daniel-siepmann.de
<p>Multiple occurences:</p>
<pre>
(int)$row[$tableControl['languageField']] !== -1
</pre>
<pre>
if ((int)$row[$tableControl['languageField']] === 0) {
</pre>
<pre>
} elseif ($OLmode === 'hideNonTranslated' && (int)$row[$tableControl['languageField']] === 0) {
</pre>