Project

General

Profile

Actions

Bug #45140

closed

Download as Zip on Windows systems get invalid zip files

Added by Tobias Klepp almost 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2013-02-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #45404: em should not export invisible foldersClosed2013-02-12

Actions
Actions #1

Updated by Tobias Klepp almost 12 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.

Actions #2

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!

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #10

Updated by Oliver Hader over 11 years ago

  • Target version set to 2222
Actions #11

Updated by Oliver Hader over 11 years ago

  • Project changed from 2269 to TYPO3 Core
Actions #12

Updated by Oliver Hader over 11 years ago

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

Updated by Oliver Hader over 11 years ago

  • Category set to Extension Manager
Actions #14

Updated by Oliver Hader over 11 years ago

  • Target version deleted (2222)
Actions #15

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF