Bug #49029

Files created via FAL get the wrong permissions set

Added by Michael Knabe about 8 years ago. Updated over 2 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

#1

Updated by Gerrit Code Review about 8 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

#2

Updated by Gerrit Code Review about 8 years ago

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

#3

Updated by Gerrit Code Review about 8 years ago

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

#4

Updated by Gerrit Code Review about 8 years ago

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

#5

Updated by Gerrit Code Review about 8 years ago

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

#6

Updated by Gerrit Code Review almost 8 years ago

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

#7

Updated by Gerrit Code Review almost 8 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

#8

Updated by Gerrit Code Review almost 8 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

#9

Updated by Anonymous almost 8 years ago

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

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF