Bug #32552

PackageStates are saved on each request

Added by Bastian Waidelich almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
Category:
Package
Target version:
-
Start date:
2011-12-14
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

\TYPO3\FLOW3\Package\PackageManager::initialize() always invokes loadPackageStates() which contains the lines

if ($this->packageStatesConfiguration === array() && $this->bootstrap->getContext() !== 'Production') {
    $this->scanAvailablePackages();
    [...]

scanAvailablePackages() in turn calls savePackageStates() which deletes all shortcut paths and recreates them.

If I get it right this means, that all shortcut paths are recreated for each request. Is this intended?


Related issues

Related to TYPO3.Flow - Feature #32333: Modular and configurable bootstrapResolvedRobert Lemke2011-12-06

Actions
#1

Updated by Christopher Hlubek almost 10 years ago

  • Priority changed from Should have to Must have

I think this is a blocker for development, I always get permission problems when Shortcuts are removed etc.

I think there is a bug with the empty package state configuration triggering the reload /save on every request. We only need to scan packages on the first hit and then only if package relate actions are called (like activate / list etc.).

#2

Updated by Karsten Dambekalns almost 10 years ago

  • Status changed from New to Accepted
#3

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from Accepted to Under Review

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

#4

Updated by Gerrit Code Review almost 10 years ago

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

#5

Updated by Gerrit Code Review almost 10 years ago

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

#6

Updated by Gerrit Code Review almost 10 years ago

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

#7

Updated by Gerrit Code Review almost 10 years ago

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

#8

Updated by Gerrit Code Review almost 10 years ago

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

#9

Updated by Gerrit Code Review almost 10 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7268

#10

Updated by Christopher Hlubek almost 10 years ago

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

Also available in: Atom PDF