Project

General

Profile

Actions

Bug #69741

closed

getComposerManifest doesn't pass exceptions

Added by Jigal van Hemert about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
System/Bootstrap/Configuration
Target version:
Start date:
2015-09-12
Due date:
% Done:

100%

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

Description

\TYPO3\CMS\Core\Package\PackageManager::getComposerManifest() calls \TYPO3\CMS\Core\Package\PackageManager::mapExtensionManagerConfigurationToComposerManifest() to read and parse ext_emconf.php files. The latter can throw some exceptions with details on what went wrong. These are caught inside getComposerManifest() and instead an exception is thrown that there is neither a composer.json nor an ext_emconf.php file found.

Example:
- remove version numbers in the conflict part of ext_emconf
- mapExtensionManagerConfigurationToComposerManifest throws an exception with the description "The extension "%s" has invalid version constraints in conflicts section. Extension key is missing!"
- getComposerManifest() catches this and throws the mysterious message "Neither a composer.json nor an ext_emconf.php file was found for extension <name>"

Actions

Also available in: Atom PDF