Project

General

Profile

Actions

Bug #49029

closed

Files created via FAL get the wrong permissions set

Added by Michael Knabe over 11 years ago. Updated about 6 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 #1

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21336

Actions #2

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21336

Actions #3

Updated by Gerrit Code Review over 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21336

Actions #4

Updated by Gerrit Code Review over 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21336

Actions #5

Updated by Gerrit Code Review over 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21336

Actions #6

Updated by Gerrit Code Review over 11 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21336

Actions #7

Updated by Gerrit Code Review over 11 years ago

Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21532

Actions #8

Updated by Gerrit Code Review over 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/21533

Actions #9

Updated by Anonymous over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF