Project

General

Profile

Actions

Bug #17953

closed

Permission problem of RTE images

Added by Miles Mller almost 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-12-28
Due date:
% Done:

0%

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

Description

Hi,

I moved Typo3 to a new server (Apache2, suPHP) and had a small problem with adding new images into a page!

The HtmlArea creates the RTE image under uploads, but with wrong permissions (0600)!

Apache2 returns a "no permissions" site if i try to open the resized image in the browser!

After adding a chmod in the file typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php after both copy() everything works correctly now!

The missing code is:

@chmod($destName, $TYPO3_CONF_VARS['BE']['fileCreateMask']);

Greets,

Miles

(issue imported from #M7052)


Files

rtehtmlarea_bugfix_7052.patch (1.19 KB) rtehtmlarea_bugfix_7052.patch Administrator Admin, 2008-01-06 21:43
rtehtmlarea_bugfix_7052_new.patch (1.19 KB) rtehtmlarea_bugfix_7052_new.patch Administrator Admin, 2008-02-05 18:41
rtehtmlarea_bugfix_7052_new2.patch (1.2 KB) rtehtmlarea_bugfix_7052_new2.patch Administrator Admin, 2008-02-05 18:52

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #16979: Problem to insert Image inside htmlArea RTEClosedStanislas Rolland2007-02-12

Actions
Actions #1

Updated by Stanislas Rolland almost 17 years ago

Fixed in SVN TYPO3core trunk revision 2868.

Actions #2

Updated by Miles Mller almost 17 years ago

The Patch don't work, because you can't chmod before you create the file.

Actions #3

Updated by Miles Mller almost 17 years ago

Sorry, I found one more mistake!

The variable $TYPO3_CONF_VARS['BE']['fileCreateMask'] is saved as string, but chmod need it as a number, so you need to convert it with octdec!

rtehtmlarea_bugfix_7052_new2.patch should be correct now!

Actions #4

Updated by Stanislas Rolland almost 17 years ago

Thank you for your patience!

Committed to SVN branches trunk and TYPO3_4-2

Actions

Also available in: Atom PDF