Bug #45140
closedDownload as Zip on Windows systems get invalid zip files
100%
Description
If I click on "Download as Zip" in the extension manager on a windows system (Windows 7, 64 bit) and download the file, I can't install the extension on a linux system. The extension was uploaded but the install progress stop with the following error:
Extension Upload failed
PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Extensionmanager\Utility\InstallUtility::processDatabaseUpdates() must be an array, null given, called in /var/vhosts/domain.tld/html/typo3_src-6.0.1/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php on line 133 and defined in /var/vhosts/domain.tld/html/typo3_src-6.0.1/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php line 236
I looked in the file system and see, that the extension is there but the content of the extension directory is crazy. There are no sub directories. Every file name begins with a backslash. Filenames includes the complete path like "\Configuration\TypoScript\constants.txt" It looks like a windows/linux problem in the zip generation progress.
Updated by Tobias Klepp over 11 years ago
To fix this problem, I find in the file typo3_src-6.0.1/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php on line 354 the following code:
$zip->addFile($key, $archiveName);
and replace it with this code:
$zip->addFile($key, \TYPO3\CMS\Core\Utility\GeneralUtility::fixWindowsFilePath($archiveName));
I download my extension on a windows system and install it without error on a linux system.
Updated by Tobias Klepp over 11 years ago
In TYPO3 version 6.0.4 the extension manager is updated. Now I always get an zip file with 0 bytes. If I go through the code and create some test output, the function $zip->close(); (line 380) give me a false as the result on my Windows 7 PC.
Please check also for Windows compatibility! I need this basic funktionality!
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18961
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18961
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18961
Updated by Gerrit Code Review over 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18961
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/19118
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/19118
Updated by Oliver Hader over 11 years ago
Updated by Oliver Hader over 11 years ago
- Project changed from 2269 to TYPO3 Core
Updated by Oliver Hader over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Updated by Benni Mack almost 6 years ago
- Status changed from Resolved to Closed