Review main Abandoned

80764[BUGFIX] Ensure minimal sorting order for active packages

Oliver Hader CR 0 V 0 Hard +259 −5 updated 09/19/23, 12:00

Commit message

The order of packages (extensions) in the PackageManager
basically depends on how those extension keys were loaded.
In case no caches are available, the keys are retrieved
from the filesystem in the `scanPackagePathsForExtensions()`.

Besides that, it was observed that there were different
results in the actual TYPO3 installation, in functional test
and in acceptance tests - which revealed some "bias" during
the specific test initializations. OS specifics added on
top of that behavior.

This change tries to introduce a minimal set of ordered
dependencies for active packages. The extension keys `core`,
`backend`, `frontend`, `extbase`, `fluid`, `install` will
always be at the beginning of the list of active packages
(in case they are avaiable in that particular scenario).

The remaining packages are sorted by their corresponding
dependency settings in `ext_empconf.php` properties `depends`
and `suggests` or alphabetically as fall-back.

Context: In a recent scenario, it happened that CSP settings
of `ext:extensionmanager` were processed before `ext:backend`
and `ext:core` were processed.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 29