[BUGFIX] Fix dependencies for t3x upload 19/42619/6
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 14 Aug 2015 16:03:02 +0000 (18:03 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 15 Aug 2015 12:03:21 +0000 (14:03 +0200)
commit9ee2a54f4383aa581f99b14d4690cc38e2c03660
tree3ea3acda5417faa48b11cb912795580f875a160e
parentb5cfe39876b664a474f36c220df1f96783d59dbd
[BUGFIX] Fix dependencies for t3x upload

When extracting the t3x archive, the EM_CONF data is taken to
create a new ext_emconf.php file.
An already extracted ext_emconf.php file is overwritten in this process.

Since those t3x files are created by TER server and this TER server
does not include the extension constraints in this array,
all constraints are lost in this process.

To fix this, it is needed to use a present ext_emconf.php file
and merge the meta properties with its properties to construct
the final ext_emconf.php.

Resolves: #69070
Releases: master, 6.2
Change-Id: I3997bee05f256a3ff23f0eee516ecf0a323017c3
Reviewed-on: http://review.typo3.org/42619
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/extensionmanager/Classes/Controller/UploadExtensionFileController.php
typo3/sysext/extensionmanager/Classes/Exception/DependencyConfigurationNotFoundException.php [new file with mode: 0644]
typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
typo3/sysext/extensionmanager/Classes/Utility/EmConfUtility.php
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php