Looking through the apache logs, the zip error is from line 64 of include/utils/php_zip_utils.php:
Code:
$res = $zip->extractTo($zip_dir);
This uses the PHP ZipArchive object to unzip the module. It is passed the correct zip source, and the correct destination, and gets as far as extracting the images folder and the manifest.php script, then then stops with this error (with full paths removed to protect the innocent):
Code:
PHP Warning: ZipArchive::extractTo(/myhttproot/cache/upload/upgrades/temp/AwpWNZ/) [<a href='ziparchive.extractto'>ziparchive.extractto</a>]: failed to open stream: Is a directory in /myhttproot/include/utils/php_zip_utils.php on line 64, referer: http://sugar.example.com/index.php?module=Administration&action=UpgradeWizard&view=module
I'm on PHP 5.3, I have the zip file it is trying to extract, so will run some tests to see why it is having trouble. Winzip has no problem opening the archive. However some clues when trying to extract using the Linux command line:
Code:
inflating: manifest.php
creating: icons/
creating: icons/default/
creating: icons/default/images/
inflating: icons/default/images/Createcrole_contact_roles.gif
inflating: icons/default/images/crole_contact_roles.gif
inflating: icons/default/images/icon_Crole_contact_roles.gif
inflating: icons/default/images/icon_crole_contact_roles_32.gif
warning: skipped "../" path component(s) in icons/default/images/../
warning: skipped "../" path component(s) in icons/default/../
warning: skipped "../" path component(s) in icons/../
warning: skipped "../" path component(s) in ../
...
Aha - so the zip archive created by the module builder contains ".." as parts of paths. It looks to me like the zip archive is not being generated correctly.
Since this is beta, is there somewhere I should be reporting this?
-- Jason
Bookmarks