Issue Bug Closed

#66337PackageStates.php file has incorrect permissions when being recreated again

Sergio Catalá 04/09/15, 10:18 updated 10/02/18, 11:45

Description

We have in LocalConfiguration.php the next settings:

[BE][fileCreateMask] = 0660
[BE][folderCreateMask] = 2770
[BE][createGroup] = ‘www-data’

If PackageStates.php file is deleted, when Typo3 recreates it again, the permissions for this file are not setup properly as defined in LocalConfiguration.php file.

Suggestion:

Add the next line:
\TYPO3\CMS\Core\Utility\GeneralUtility::fixPermissions($this->packageStatesPathAndFilename);

after: parent::sortAndSavePackageStates();

in sortAndSavePackageStates() function.

Reviews 2