[TYPO3-core] RFC #15133: Bug: Rendering Images with ImageMagick fails in case of file-permissions

Alexander Grein ag at mediaessenz.eu
Fri Jul 16 09:31:48 CEST 2010


Hello,

This is a SVN patch request.

Type: bug

BT reference: http://bugs.typo3.org/view.php?id=15133

Branches: 4.4, trunk

Problem: If an image goes thru an image manipulation routine using 
GD-Lib or ImageMagick, the file permission of this generated picture 
(using t3lib_div.fixPermissions) will not be set correctly. So 
manipulated images will not be shown in frontend (depending on server 
settings).

The Problem is the new version of fixPermission in t3lib_div with the 
new line (3001):
if (self::isAllowedAbsPath($path))
This inquiry is always false in case of the given path contains a 
generated images (because the path is not absolute)

Solution: Add another inquiry before this one and add the PATH_site if 
nessesary

How to reproduce: Use an image content element and set the width 
parameter. No Image will be shown in frontend. The image will be 
generated, but the rights are wrong.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug_15133.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100716/c9528b05/attachment.txt>


More information about the TYPO3-team-core mailing list