TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692021-11-04T22:59:09ZTYPO3 Forge
Redmine TYPO3 Core - Bug #95877 (Closed): missing index "install_path" with composer 2.0http://forge.typo3.org/issues/958772021-11-04T22:59:09ZMarco Huber
<p>composer 2.0 doesn't set "install_path" in vendor/composer/installed.php like composer 2.1 does. This missing array index leads to a PHP notice in typo3/sysext/core/Classes/Core/Environment.php line 137 and because of some strange server configuration this breaks TYPO3 completly.</p>
<pre><code class="shell syntaxhl" data-language="shell"><span class="nv">$ </span>vendor/bin/typo3cms cache:flush
PHP Notice: Undefined index: install_path <span class="k">in</span> /custompath/private/typo3/sysext/core/Classes/Core/Environment.php on line 137
</code></pre> TYPO3 Core - Feature #95571 (New): Show configuration from services.yaml in BE module "Configurat...http://forge.typo3.org/issues/955712021-10-11T18:48:52ZMarco Huber
<p>To find available services and service tags an overview of the existing services would be nice.</p> TYPO3 Core - Bug #90761 (Closed): Fluid select viewhelper not added to __trustedProperties if mul...http://forge.typo3.org/issues/907612020-03-14T14:47:43ZMarco Huber
<p>The registerFieldNameForFormTokenGeneration is not called, if the viewhelper has multiple="true" but has no options. Then the field is not added to the hidden "__trustedProperties" field. But when the form is submitted, the select field is in the sent array with an empty string as value and then the extbase data mapper throws the exception 1297759968.</p>
<p>See: <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php#L153">https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php#L153</a></p> TYPO3 Core - Bug #79566 (Closed): No login possible if cookie name is longer than 32 charshttp://forge.typo3.org/issues/795662017-01-31T11:28:32ZMarco Huber
<p>Because the cookie name is stored in the database be_sessions.ses_name (or fe_sessions.ses_name) and the field has a limit of 32 chars, the login does not work if the cookie name (set via $GLOBALS['TYPO3_CONF_VARS']['SYS|BE|FE']['cookieName']) is longer.</p> TYPO3 Core - Bug #79037 (Closed): In the BE the select icons' titles are not shownhttp://forge.typo3.org/issues/790372016-12-19T17:48:05ZMarco Huber
<p>Because only the a tag but not the image tag has a title attribute, in some browsers the title is not shown on mouseover.</p> TYPO3 Core - Bug #77577 (Closed): Source collection images don't get resized if file = GIFBUILDERhttp://forge.typo3.org/issues/775772016-08-22T13:43:59ZMarco Huber
<p>If you use a GIFBUILDER object as file resource in an IMAGE object, the images in the source collection don't get resized.</p>
<pre>
10 = IMAGE
10 {
file = GIFBUILDER
file {
XY = 400,350
...
}
sourceCollection {
small.width = 320
small.mediaQuery = (min-width: 260px)
medium.width = 400
medium.mediaQuery = (min-width: 360px)
}
}
</pre> TYPO3 Core - Bug #77098 (Closed): versionNumberInFilename = '1' not working with the demo .htacce...http://forge.typo3.org/issues/770982016-07-14T17:38:03ZMarco Huber
<p>If you use an Apache 2.2 and the demo .htaccess the RewriteRule to resolve the verionNumberInFilename doesn't work. It seems like this is a bug in Apache 2.2 and/or mod_rewrite which appends the absolute path to the file when it rewrites the path. Or perhaps I misunderstood the Apache documentation ;-). In the browser you simply get a 404 for the CSS/Javascript file.</p>
<p>To solve this problem, you could set a "RewriteBase = /" in your .htaccess. Then it works for every file, which is not in the "/typo3" folder. But if you enable debugging for the backend, the CSS and Javascript files from the "/typo3" folder can not be found because of the .htaccess in the "/typo3" folder. You have to set a "RewriteBase = /typo3/" in the .htaccess file in the "/typo3" folder.</p>
<p>Or you have to modify the .htaccess RewriteRule in the root folder from<br /><pre>
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
</pre><br />to<br /><pre>
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ %{ENV:CWD}$1.$3 [L]
</pre></p>
<p>This bug doesn't happen with Apache 2.4, but i find no requirement for a specific Apache version on <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/master/INSTALL.md">https://github.com/TYPO3/TYPO3.CMS/blob/master/INSTALL.md</a>.</p>
<p>This bug appears in TYPO3 6.2 and 7.6. And I think (but have not tested it) it appears in 8.x, too.</p> TYPO3 Core - Bug #76029 (Rejected): Regex in ExtensionManagementUtility::executePositionedStringI...http://forge.typo3.org/issues/760292016-05-03T14:29:05ZMarco Huber
<pre>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'myfield', '', 'after:description');
</pre>
<p>The field "description" is part of the palette "metatags" so $positionName in ExtensionManagementUtility::executePositionedStringInsertion() is "--palette--;;metatags". This is modified to "--palette--;[^;]*;metatags" and then escaped with "preg_quote($positionName, '/')". And then the preg_replace doesn't work.</p>
<p>$positionName should be first quoted and then extended.</p>
<p>This was intruduced in <a class="external" href="https://forge.typo3.org/issues/75830">https://forge.typo3.org/issues/75830</a>.</p> TYPO3 Core - Bug #75254 (Closed): Wrong page TSconfig in link wizard after positioned inserthttp://forge.typo3.org/issues/752542016-03-24T12:13:37ZMarco Huber
<p>If you insert a content element (or a page) at a concrete position f.e. after content element 15 the value in $row['pid'] is -15.</p>
<p>This pid is also handed over to the link wizard popup. But with this "pid" the TSconfig can not be loaded.</p>
<p>Because this is the second place I find this issue, I'm afraid that we have a bigger problem here.</p> TYPO3 Core - Bug #75020 (Closed): "Save and view" button shows root page for pages of type "Short...http://forge.typo3.org/issues/750202016-03-11T15:22:16ZMarco Huber
<p>If you edit the page properties of a page with the doktype "Shortcut" or "Link to External URL" and then klick on "Save and view" the rootpage is shown and not the current page or the current page's target.</p>
<p>If you click on "Show" in context menu in the page tree the current page or the current page's target is shown.</p> TYPO3 Core - Bug #73896 (Closed): Old constraints in ext_emconf.php after extension update with a...http://forge.typo3.org/issues/738962016-03-02T19:55:20ZMarco Huber
<p>In a clean TYPO3 installation on a server with an activated opcode cache install an extension, f.e. static_info_tables. Then change the dependencies in the extensions ext_emconf.php. Then install the extension again by uploading the .t3x file in the extension manager.<br />The dependencies in the ext_emconf.php will not be updated.</p>
<p>This happens also, if you want to update an extension with the extension manager.</p>
<p>This happens only, if the extension gets installed/updated with a .t3x file. If you upload the .zip version in the extension manager, everything works fine.</p>
<p>In the .t3x file is no dependency information (and the other constraints, too) stored. So `\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility::includeEmConf()` is called, to get the missing informations. But the `include` in this function gets the old ext_emconf.php from the opcode cache.</p>
<p>One solution would be, to call `\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Service\OpcodeCacheService::class)->clearAllActive($path);`. But I have the feeling, that everything gets really slow then.<br />Another solution would be, to get the missing information from the table tx_extensionmanager_domain_model_extension or from the array $extensionData['FILES'].</p>
<p>I've found this issue in TYPO3 6.2 and 7.6, and I think it is still present in master.</p>
<p>What do you think would be the best solution?</p> TYPO3 Core - Bug #73675 (Closed): URLs with spaces in the RTEhttp://forge.typo3.org/issues/736752016-02-25T16:00:51ZMarco Huber
<p>Sometimes there could be spaces in a link inserted in the RTE, f.e. if you link to a local file (file:///C:\my\Path is\sö\crazy with everything.pdf) as external URL. Then there should be wrapped some " around the url part of the typo3 link tag, like it is already done in all other link fields (f.e. the field header_link). Otherwise, when the link tag is parsed, some parts of the URL are used as target, class and title.</p>
<p>In \TYPO3\CMS\Core\Html\RteHtmlParser::TS_links_db() we should use the function TypoLinkCodecService::encode().<br />IMO the cleanest solution would be:<br /><pre>
@@ -595,9 +595,6 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser
}
// Only if href, target, class and tile are the only attributes, we can alter the link!
if (empty($attribArray_copy)) {
- // Quoting class and title attributes if they contain spaces
- $attribArray['class'] = preg_match('/ /', $attribArray['class']) ? '"' . $attribArray['class'] . '"' : $attribArray['class'];
- $attribArray['title'] = preg_match('/ /', $attribArray['title']) ? '"' . $attribArray['title'] . '"' : $attribArray['title'];
// Creating the TYPO3 pseudo-tag "<LINK>" for the link (includes href/url, target and class attributes):
// If data-htmlarea-external attribute is set, keep the href unchanged
if ($attribArray['data-htmlarea-external']) {
@@ -605,7 +602,8 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser
} else {
$href = $info['url'] . ($info['query'] ? ',0,' . $info['query'] : '');
}
- $bTag = '<link ' . $href . ($attribArray['target'] ? ' ' . $attribArray['target'] : ($attribArray['class'] || $attribArray['title'] ? ' -' : '')) . ($attribArray['class'] ? ' ' . $attribArray['class'] : ($attribArray['title'] ? ' -' : '')) . ($attribArray['title'] ? ' ' . $attribArray['title'] : '') . '>';
+ $typoLink = GeneralUtility::makeInstance(TypoLinkCodecService::class)->encode(array('url' => $href, 'target' => $attribArray['target'], 'class' => $attribArray['class'], 'title' => $attribArray['title'], 'additionalParams' => ''));
+ $bTag = '<link ' . $typoLink . '>';
$eTag = '</link>';
// Modify parameters
if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['modifyParams_LinksDb_PostProc']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['modifyParams_LinksDb_PostProc'])) {
</pre><br />But this would be a breaking change, because we change the value of $attribArray['title'] and $attribArray['class'] in the hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['modifyParams_LinksDb_PostProc'].<br />So that's why I remove the " from $attribArray['title'] and $attribArray['class'] manually in my patch.</p> TYPO3 Core - Bug #73014 (Closed): Shortcut button gone after uninstalling EXT:cshmanualhttp://forge.typo3.org/issues/730142016-01-29T18:09:32ZMarco Huber
<p>Because of <a class="external" href="https://forge.typo3.org/issues/73013">https://forge.typo3.org/issues/73013</a> and <a class="external" href="https://forge.typo3.org/issues/73009">https://forge.typo3.org/issues/73009</a> I uninstalled the EXT:cshmanual. But now the new shortcut button is gone.</p> TYPO3 Core - Bug #73013 (Closed): Don't render the "more" link in the help popup if the user has ...http://forge.typo3.org/issues/730132016-01-29T16:07:25ZMarco Huber
<p>In the help popups the "read more" link is shown even if the user has no access to cshmanual BE module. If the user clicks on the link, the exception "#1294586448: Access Error: You don't have access to this module" is thrown.</p> TYPO3 Core - Bug #25347 (Closed): TCA type "select", renderMode "tree", maxitems = 1 doesn't workhttp://forge.typo3.org/issues/253472011-03-16T16:53:26ZMarco Huber
<p>I want to use the new TCA tree, but when I configure 1 as maxitems I can't select a tree node.</p>
<p>This happens, because this.countSelectedNodes in t3lib\js\extjs\tree\tree.js is 1 even when I create a new record. And this.countSelectedNodes is 1 because $valueArray in t3lib\tceforms\class.t3lib_tceforms_tree.php in the function renderField always has at least one entry.</p>
<p>$valueArray is created by exploding $PA['itemFormElValue']. In fresh records $PA['itemFormElValue'] is 0 and not NULL (or not set) and has no other effects. But $valueArray has an entry and that's why count($valueArray) is 1 and then this.countSelectedNodes is also 1.</p>
<p>To fix this issue $PA['itemFormElValue'] should be only exploded when it's not 0. Like I worte, this is done in t3lib\tceforms\class.t3lib_tceforms_tree.php and fixed in the appended patch.</p>
<p>Fixing this issue causes a little follow up in t3lib\js\extjs\tree\tree.js. This is also fixed in the patch.</p>
<p>I hope the patch file's syntax is correct, this is my first git patch ;-)</p>
<p>(issue imported from #M17976)</p>