Actions
Feature #62271
closedInstall Tool unavailable if there are unresolved dependencies
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2014-10-16
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.5
Tags:
Complexity:
Sprint Focus:
Description
If a TYPO3 extension / package is not listed in PackageStates and another extension / package depends on it, the DependencyResolver throws and UnexpectedValueException.
This exception is uncaught even in the install tool, where we should be able to resolve such problems - either by deactivating the extension with the missing dependency or by updating the PackageStates file.
This is an extreme edge case and it won't happen very often. For the sake of usability this exception should be caught and handled accordingly in the install tool.
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The package "myextension" depends on "nothere" which is not present in the system.' in /typo3/sysext/core/Classes/Package/DependencyResolver.php:140 Stack trace: #0 /typo3/sysext/core/Classes/Package/DependencyResolver.php(240): TYPO3\CMS\Core\Package\DependencyResolver->buildDependencyGraphForPackages(Array, Array) #1 /typo3/sysext/core/Classes/Package/DependencyResolver.php(51): TYPO3\CMS\Core\Package\DependencyResolver->buildDependencyGraph(Array) #2 /typo3/sysext/core/Classes/Package/PackageManager.php(701): TYPO3\CMS\Core\Package\DependencyResolver->sortPackageStatesConfigurationByDependency(Array) #3 /typo3/sysext/core/Resources/PHP/TYPO3. in /typo3/sysext/core/Classes/Package/
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Closed
Taken into account in #63909.
The issues are not linked on purpose, so the refactoring ticket does not get bloated with relations.
Actions