Bug #57216
closedEM fails to resolve dependency requirement when dependency's composer.json lacks version
100%
Description
As subject describes, this is an edge case which happens only when:
- Extension A depends on Extension B
- Extension B is currently installed
- Extension A is not currently installed
- Extension B has composer.json file
- Extension B composer.json file contains no "version" attribute or this attribute is empty.
Failure in EM: Unable to resolve dependency for "$dependencyExtension" even if ext_emconf.php of Extension B has proper version.
Cause: DependencyUtility uses ExtensionManagementUtility::getExtensionVersion when dependency extension IS installed, this method then relies on PackageMetaData which only supports composer.json.
Suggested action: Throw Exception from within ExtensionManagementUtility::getExtensionVersion() if version value from PackageMetaData is empty.
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28683
Updated by Anonymous over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f6f96f7ca970b6e857bc109ae966c518216aac84.