Project

General

Profile

Actions

Bug #76205

closed

Replacing a file via filelist changes permissions of the file

Added by Markus Klein over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Start date:
2016-05-17
Due date:
% Done:

100%

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

Description

Replacing a file and preserving its name causes the file permissions to be changed. Most notably the group is changed, which causes the file to get inaccessible in some setups.

Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48181

Actions #2

Updated by Markus Klein over 8 years ago

Permission setup of our server:

Apache webserver user/group www-data
PHP-FPM with dedicated user/group per pool

webserver user is not part of any fpm group nor the other way around.

folders: drwxr-s--- 7 fpm-user www-data
files: rw-r---- 1 fpm-user www-data

'fileCreateMask' => '0640',
'folderCreateMask' => '2750',

(no createGroup etc set in T3 as not necessary)

Actions #3

Updated by Markus Klein over 8 years ago

Without the patch a replaced file gets the group of the fpm-user and does not inherit the sticky group from the parent folder.

Actions #4

Updated by Gerrit Code Review over 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48194

Actions #5

Updated by Markus Klein over 8 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF