Project

General

Profile

Actions

Bug #56084

closed

t3editor is not usable any more

Added by Alexander Schnitzler about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
t3editor
Target version:
Start date:
2014-02-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Regression has been introduced in #55371

The actual problem of the change is the following:

-            $ajaxObj->addContent('result', $this->fileData);
+            $fileData = array();
+            foreach ($this->fileData as $action => $result) {
+                foreach ($result as $files) {
+                    /** @var $file \TYPO3\CMS\Core\Resource\File */
+                    foreach ($files as $file) {
+                        $fileData[$action][] = $file->toArray();
+                    }
+                }
+            }
+            $ajaxObj->addContent('result', $fileData);

Don't know what that should have fixed as there is not a single unit test for the change but if you save a file edited with t3editor in the list module, $this->fileData is as such:

array(
  'editfile' => array(
    0 => true
  )
)

This results in $files being true instead of array in the second foreach loop. So the third foreach loop will not be executed and therefore $fileData is an empty array.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #55371: Ajax handler TYPO3_tcefile::process is brokenClosedFrans Saris2014-01-27

Actions
Blocks TYPO3 Core - Task #55515: Add CSRF Protection for tce_file.phpClosedAlexander Schnitzler2014-01-31

Actions
Actions

Also available in: Atom PDF