Project

General

Profile

Actions

Bug #59215

closed

t3lib_BEfunc::getThumbnail doesn't work anymore

Added by Jens no-lastname-given almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-05-29
Due date:
% Done:

0%

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

Description

I migrated from 4.5 to 6.2.3. In 4.5 t3lib_BEfunc::getThumbnail($this->doc->backPath.'thumbs.php',PATH_site.$path.$file,'null',$imgsize) worked perfect.
In 6.2 an absolute path like PATH_site.$path.$file does not work in \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\ThumbnailView') in init(). It is changed to PATH_site.PATH_site.$path.$file

A relative path like ../fileadmin/picture/test.jpg is accepted but the md5 check fails ($fileObject->calculateChecksum() == $md5sum). May be t3lib_BEfunc::getThumbnail is generating a wrong md5 checksum.
A relative path like fileadmin/picture/test.jpg is changed to /typo3/fileadmin/picture/test.jpg what is completly wrong


Files

ThumbnailView.php (15.3 KB) ThumbnailView.php Jens no-lastname-given, 2014-05-31 00:31

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #50301: Generated thumbnail's URL with BackendUtility::getThumbNail don't workClosed2013-07-22

Actions
Actions

Also available in: Atom PDF