Project

General

Profile

Actions

Bug #49029

closed

Files created via FAL get the wrong permissions set

Added by Michael Knabe almost 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-06-11
Due date:
% Done:

100%

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

Description

When creating a File through FAL GeneralUtility::fixPermissions is not called so the file won't have the correct access permissions afterwards, the fileCreateMask is just ignored.

Affected versions:
TYPO3.CMS 6.0 - 6.2-dev

Steps to reproduce:
- Set $TYPO3_CONF_VARS['BE']['fileCreateMask'] to something else but the umask (0624 for example)
- Create a file using the Filelist-Module in TYPO3-BE
- Check the files permissions in the filesystem (use stat $filename to get the numeric permissions)
- See that the output of stat and fileCreateMask are different

The solution is to call GeneralUtility::fixPermissions after creating a file in the LocalDriver. Afterwards you'll see that files have the correct permissions

Actions

Also available in: Atom PDF