User tests: Successful: Unsuccessful:
Issue and solution reported by user jooomlaa at
https://forum.joomla.de/thread/6201-vermutl-fehler-in-libraries-vendor-joomla-archive-src-archive-php-beim-entpacken/
gzip or gz archives.Joomla staging with template protostar.
Configuration: error_reporting => Maximum
Configuration: debug => Yes
Crréate a folder /tmp/source/
Put a gzip file in it that shall be extracted.
e.g. https://forum.joomla.de/core/attachment/2757-namen-fr-fenja-txt-gzip/
Enter following code in protostar index.php after line defined('_JEXEC') or die;
use Joomla\Archive\Archive;
$fileName = 'Namen_fr-Fenja.txt.gzip';
$archive = new Archive(array('tmp_path' => JFactory::getConfig()->get('tmp_path')));
$archiveName = JPATH_SITE . '/tmp/source/' . $fileName;
$extractDir = JPATH_SITE . '/tmp/target';
$archive->extract($archiveName, $extractDir);
exit;
Pay attention that folder /tmp/target doesn't exist before test.
Open protostar page in frontend that runs the code.
/tmp/target/ with extracted file Namen_fr-Fenja in itgzip5b83db746bab9 in /tmp/Joomla\Filesystem\File::copy: Copy failed.
.../libraries/vendor/joomla/filesystem/src/File.php:94
Call stack
--
# | Function | Location
1 | () | JROOT/libraries/vendor/joomla/filesystem/src/File.php:94
2 | Joomla\Filesystem\File::copy() | JROOT/libraries/vendor/joomla/archive/src/Archive.php:115
exit; in code above (= OK)./tmp/target/ with extracted file Namen_fr-Fenja in itgzip5b83db746bab9 is not present in folder /tmp/| Status | New | ⇒ | Pending |
| Category | ⇒ | External Library Libraries Composer Change |
| Title |
|
||||||
I hope master branch there is correct joomla-framework/archive#16
closed as addressed upstream
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-27 12:13:48 |
| Closed_By | ⇒ | brianteeman | |
| Labels |
Added:
?
?
|
||
This needs to be fixed in the upstream repo.