Project

General

Profile

Actions

Bug #95111

closed

"Feature Toggles" with file OPcaching disabled doesn't work

Added by Davide Alghi about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2021-09-05
Due date:
% Done:

100%

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

Description

"Feature Toggles", in "ADMIN TOOLS>Settings" module, has saving problems, if file OPcaching is disabled (opcache.file_update_protection=0).
The "typo3conf/LocalConfiguration.php" file is not updated correctly.
This problem was already reported #59662

The "featuresSave" action, in the "Settings" controller for "install" system extension, loops over all available features and creates/saves LocalConfiguration file for each feature.
If OPcache is enabled and file caching is disabled, each save overwrites the previous one, but with initial features configuration values.

My opinion
"featuresSave" action should save LocalConfiguration file atomically, as "Configure Installation-Wide Options" does via "ConfigurationManager::setLocalConfigurationValuesByPathValuePairs()"

PS: I have selected TYPO3 v11, but the problem also exists in TYPO3 v9 and v10


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #59662: Problem with subsequent calls to $configurationManager->setLocalConfigurationValueByPath and 'LocalConfiguration invalid'Closed2014-06-19

Actions
Related to TYPO3 Core - Task #95112: FeaturetogglesClosed2021-09-05

Actions
Actions #1

Updated by Davide Alghi about 3 years ago

I added my proposal to fix this

https://github.com/TYPO3/typo3/pull/318

Actions #2

Updated by Georg Ringer about 3 years ago

  • Related to Bug #59662: Problem with subsequent calls to $configurationManager->setLocalConfigurationValueByPath and 'LocalConfiguration invalid' added
Actions #3

Updated by Simon Schaufelberger about 3 years ago

Actions #4

Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

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

Actions #5

Updated by Gerrit Code Review about 3 years ago

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

Actions #6

Updated by Gerrit Code Review about 3 years ago

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

Actions #7

Updated by Gerrit Code Review about 3 years ago

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

Actions #8

Updated by Anonymous about 3 years ago

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

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF