Project

General

Profile

Actions

Bug #57216

closed

EM fails to resolve dependency requirement when dependency's composer.json lacks version

Added by Claus Due over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-03-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

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

Actions #2

Updated by Anonymous over 10 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF