TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692017-11-13T15:57:45ZTYPO3 Forge
Redmine TYPO3 Core - Bug #82984 (Closed): cHashExcludedParameters and ext_localconf.php setuphttp://forge.typo3.org/issues/829842017-11-13T15:57:45ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>I set this in ext_localconf.php of my extension:<br /><pre>
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParameters'] .= ', my_getpara';
</pre><br />I can see under the configuration mod that my exclude parameter is set but in the FE the evaluation fails.<br />When i add the same parameter in the install tool the evaluation is fine. Maybe it is some bootstrap issue.</p>
<p>I have tested the same behaviour with TYPO3 7.6.23</p> TYPO3 Core - Bug #80867 (Closed): EXT:Form cc adress dosen't workhttp://forge.typo3.org/issues/808672017-04-17T15:35:48ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>If i use the finisher send email (reciver)(in the backend ui) an i fillout the field cc address i don't got any email. I don't have tested this with a playn typoscript form setup maybe there is still working</p> TYPO3 Core - Bug #79583 (Closed): Include static template will be overridden by the static templatehttp://forge.typo3.org/issues/795832017-02-01T14:42:32ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>If i have a default Template, where <strong>Static Template Files from TYPO3 Extensions</strong> is set on <strong>Default</strong> and i have included <strong>Indexed Search (Extbase & Fluid based) (indexed_search)</strong> than the settings from EXT:indexed_search/Configuration/TypoScript : <br /><pre>
config.index_enable = 1
config.index_externals = 1
config.index_metatags = 1
</pre></p>
<p>will be overridden by the settings from the static template from the extension self(ext_typoscript_setup.txt):<br /><pre>
config.index_enable = 0
config.index_externals = 0
config.index_metatags = 1
</pre></p>
<p>This settings seems to go also against the official documentation:<br /><pre>
Property
index_enable
Data type
boolean
Description
Enables cached pages to be indexed. Automatically enabled when EXT:indexed_search is enabled.
</pre></p> TYPO3 Core - Bug #79557 (New): Date fields DataMapper handling problemhttp://forge.typo3.org/issues/795572017-01-30T15:47:44ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>Hello everybody,<br />the handling of date fields seems incorrect in \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper here we have(without the debugs :) ):<br /><pre>
if (!is_null($columnMap) && !is_null($columnMap->getDateTimeStorageFormat())) {
$storageFormat = $columnMap->getDateTimeStorageFormat();
$timeZoneToStore = clone $input;
DebuggerUtility::var_dump($timeZoneToStore,'datetime in mapper after clone');
// set to UTC to store in database
$timeZoneToStore->setTimezone(new \DateTimeZone('UTC'));
DebuggerUtility::var_dump($timeZoneToStore,'datetime after timezone switch');
switch ($storageFormat) {
case 'datetime':
$parameter = $timeZoneToStore->format('Y-m-d H:i:s');
break;
case 'date':
$parameter = $timeZoneToStore->format('Y-m-d');
DebuggerUtility::var_dump($parameter,'formatted date parameter');
break;
default:
throw new \InvalidArgumentException('Column map DateTime format "' . $storageFormat . '" is unknown. Allowed values are datetime or date.', 1395353470);
}
</pre><br />Now i have a date field in a form, where only the date is stored, the time part is 00:00:00.<br />Im from Germany and my datetime has the timezone +1. After the UTC switch i have the time 23:00:00 from the day before and this date will go to the DB. <br />When we get the value from the DB extbase will add my timezone but unfortunately to the wrong date :D</p>
<p>You can see the debugs from the code in the attached screenshot.</p> TYPO3 Core - Bug #73592 (Closed): felogin no redirect when the page is hidden after loginhttp://forge.typo3.org/issues/735922016-02-22T10:50:42ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>When the page is hidden after login the redirect dosen't work.</p> TYPO3 Core - Bug #72878 (Closed): wrong datetime handling, they are not UTC in dbhttp://forge.typo3.org/issues/728782016-01-21T18:30:57ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>Hello folks,<br />we have a problem with the handling of datetimes. Actually the datetime are saved with the actual timezone and not UTC.</p>
<p>The problem seems in the DataHandler.php<br /><pre>
if ($isDateOrDateTimeField) {
// Convert the timestamp back to a date/time
$res['value'] = $res['value'] ? date($format, $res['value']) : $emptyValue;
}
</pre></p>
<p>with the date method we add again the timezone previously removed here:<br /><pre>
public function checkValue_input_Eval($value, $evalArray, $is_in) {
$res = array();
$newValue = $value;
$set = TRUE;
foreach ($evalArray as $func) {
switch ($func) {
case 'int':
case 'year':
case 'time':
case 'timesec':
$value = (int)$value;
break;
case 'date':
case 'datetime':
$value = (int)$value;
if ($value > 0 && !$this->dontProcessTransformations) {
$value -= date('Z', $value);
}
break;
</pre><br />so the datetime will be saved with their local timezone.</p>
<p>This Problem is pretty heavy because extbase expect datetime to be UTC.</p>
<pre>
protected function mapDateTime($value, $storageFormat = NULL, $targetType = 'DateTime') {
if (empty($value) || $value === '0000-00-00' || $value === '0000-00-00 00:00:00') {
// 0 -> NULL !!!
return NULL;
} elseif ($storageFormat === 'date' || $storageFormat === 'datetime') {
// native date/datetime values are stored in UTC
$utcTimeZone = new \DateTimeZone('UTC');
$utcDateTime = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($targetType, $value, $utcTimeZone);
$currentTimeZone = new \DateTimeZone(date_default_timezone_get());
return $utcDateTime->setTimezone($currentTimeZone);
} else {
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($targetType, date('c', $value));
}
}
</pre>
<p>I have fixed this you can see my changes here:<br />[[<a class="external" href="https://github.com/Xippo/TYPO3.CMS/pull/1/files">https://github.com/Xippo/TYPO3.CMS/pull/1/files</a>]]</p>
<p>With this fix the datetimes are stored as UTC in the DB. The backend shows the right dates and times and Extbase give you datetimes with the right time. Before i had my timezone offset added on the DB time.</p>
<p>I don't have tested this in 7.6 but i think there is the same.</p>
<p>I have discovered another bug in Extbase, related too datetimes. <br />If you do somthing like that:</p>
<pre>
public function listAction() {
$tests = $this->testRepository->findAll();
/*
/** @var \TEST\Test\Domain\Model\Test $object */
$object = $tests->getFirst();
$datetime = $object->getDatetime();
$datetime->add(new \DateInterval('P0Y0DT0H1M'));
$object->setDatetime($datetime);
$this->testRepository->update($object);
$this->view->assign('tests', $tests);
}
</pre>
<p>Extbase will add every time the timezone offset, like you can see above in the mapDateTime function, but Extbase don't remove the offset on the way in the database so in my case the code above adds every time 1h when the list view is called.</p>
<p>I don't now if it is a bug but people have to now this because they have to set the datetimes on UTC by it self. Or we change the entire handling in TYPO3 and Extbase and store datetime with the local timezone but this don't seems to be a good idea.</p> TYPO3 Core - Bug #62523 (Closed): Workspace dosen't generate the preview stop/logout button like ...http://forge.typo3.org/issues/625232014-10-28T16:58:17ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>Hi folks,</p>
<p>i have tried on two different 6.2.5 systems with the same result.<br />If i generate a workspace preview link and open it, i dont have the old red box for the logout("stop preview"). It dosen't matter if i am logged in the backend or not, in either cases i dont have the box. I have a js error too but it was just mentioned in <a class="external" href="https://forge.typo3.org/issues/61377">https://forge.typo3.org/issues/61377</a> in the first comment.</p>
<p>The entire div box is not generated from the system, i have take look in the files but i couldn't fix it.</p>
<p>Sry for my bad english i try too improve soon :)</p> TYPO3 Core - Bug #57235 (Closed): Image caption appears under wrong imagehttp://forge.typo3.org/issues/572352014-03-24T15:31:26ZOliver Pfaffoliver.pfaff.email@gmail.com
<p>Steps to reproduce:<br />- Create a CE with two FAL IRRE images<br />- Add a description for the first file, distributed on two lines of the discription field (text "one" > enter > text "two")<br />--> in the FE: Under the frist file, we will find the first line of the descripton from first file("one") and under the second file we will find the second line of the descripten from first file("two")</p>
<p>It would be cool when we could make descriptions with line breaks :D</p>
<p>TYPO3 Version 6.1.7 and testet also on 6.2 beta5 here we have the same bug.</p>