[BUGFIX] Fix dependencies for t3x upload 42/42642/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 14 Aug 2015 16:03:02 +0000 (18:03 +0200)
committerNicole Cordes <typo3@cordes.co>
Sun, 16 Aug 2015 12:37:35 +0000 (14:37 +0200)
commit891ddd2c4db9ce333ff7fd44b62a734e778042f1
tree9cb336d320fb2b3ae8b3a9108fd16d930c2411f0
parent0a6948c2ab5ad130bbf1f78df081c9e5be572c7c
[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/42642
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
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