Bug 340456 - Zip that was created by ark was not extracted by php
Summary: Zip that was created by ark was not extracted by php
Status: RESOLVED DOWNSTREAM
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.19
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
: 341078 344745 345717 347009 347171 347209 348483 365062 374286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-29 12:52 UTC by Nikunj Gandhi
Modified: 2016-12-29 13:28 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
here is zip attached which get error when extracted with php (487.02 KB, application/zip)
2014-10-29 15:26 UTC, Nikunj Gandhi
Details
Screenshot how I am creating zip (307.56 KB, image/png)
2014-10-30 02:32 UTC, Nikunj Gandhi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikunj Gandhi 2014-10-29 12:52:32 UTC
As I am WordPress plugin developer I need program to be in zip file.When I create zip file with ark the php/WordPress always show me error "The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature".

If same folder I create with wine(7zip) program it will work.So I think there is some bug for creating zip with ark.

Reproducible: Always

Steps to Reproduce:
1.Right click on folder.
2.Create zip file
3.Upload zip file to WordPress plugin management will give error.

Actual Results:  
 "The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature".


Expected Results:  
The zip file should be extracted by php/WordPress. As it is working fine with Wine(7Zip).
Comment 1 Raphael Kubo da Costa 2014-10-29 14:38:28 UTC
Thanks for the report. Does it happen to any file you try to create or a specific one? Can you attach a faulty file to this report?
Comment 2 Nikunj Gandhi 2014-10-29 15:26:33 UTC
Created attachment 89363 [details]
here is zip attached which get error when extracted with php

Hello

The error occurred on every zip file created with ARK.

Plz find attached zip file.If I try to extract attached zip with php.I get error.

  "The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature".

If I create zip with wine(7zip) it simply work.

Thanks
Comment 3 Christoph Feck 2014-10-29 20:40:18 UTC
That's a TAR gzip file. Are you sure you selected the right compression type when creating the file?
Comment 4 Nikunj Gandhi 2014-10-30 02:32:12 UTC
Created attachment 89370 [details]
Screenshot how I am creating zip

Hello

I have created zip by RightClick on folder-->Compress-->As Zip Archive

I have also attached screenshot for same.

Is it not right way to create zip  file ? I am new in kubuntu.Please let me know rightway to create zip in kubuntu.

Thanks
Comment 5 Raphael Kubo da Costa 2014-10-30 11:17:25 UTC
Hmm, that should work. What Kubuntu version are you using?

Can you do the following on a terminal:
* Run kdebugdialog, type "ark" in the search box and check both "1601 ark (kdeutils)"  and "ark".
* Go to the directory that has the folder you want to compress.
* Run "ark --changetofirstpath --add --autofilename zip <the folder you want>".
* Paste the output you get here in the bug.
Comment 6 Nikunj Gandhi 2014-10-30 15:24:35 UTC
Hello
I am using kubuntu 14.10. The previous version of kubuntu 14.07 also have same problem.

Output 
-------------------------------------------------------------------------------
rk(8699) main: Entering application loop
ark(8699) Kerfuffle::AddToArchive::slotStartJob:
ark(8699) Kerfuffle::AddToArchive::slotStartJob: Autoset filename to  "/home/niks/test1.zip"
ark(8699)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-niks/ksycoca4"
ark(8699)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/zip" ,  "Kerfuffle/Plugin"  : returning  1  offers
ark(8699) Kerfuffle::Archive::create: Loading plugin "kerfuffle_libarchive"
ark(8699) Kerfuffle::ReadOnlyArchiveInterface::ReadOnlyArchiveInterface:
ark(8699) Kerfuffle::AddToArchive::slotStartJob: Setting GlobalWorkDir to  "/home/niks"
ark(8699) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver registered
ark(8699) LibArchiveInterface::addFiles: GlobalWorkDir is set, changing dir to  "/home/niks"
ark(8699) LibArchiveInterface::addFiles: Falling back to gzip
ark(8699) LibArchiveInterface::writeFile: Writing new entry  test1/
ark(8699) Kerfuffle::Job::onFinished: true
ark(8699) Kerfuffle::AddToArchive::slotFinished:
Comment 7 Raphael Kubo da Costa 2014-10-30 20:10:20 UTC
Right, thanks. This is a problem with Kubuntu's packaging -- a while ago Debian decided to use libarchive for handling ZIP files instead of the infozip packages we use here. Kubuntu then followed suit, but looking its patch seems to be based on an older version of the Debian one.

Please file a bug report in Kubuntu's bug tracker explaining the situation.
Comment 8 Nikunj Gandhi 2014-11-09 14:31:55 UTC
I have added bug to ubuntu but still there is no replay and it is till unassigned.

Plz look it here

https://bugs.launchpad.net/ubuntu/+source/kde-baseapps/+bug/1387924
Comment 9 Raphael Kubo da Costa 2014-11-09 21:53:24 UTC
The component there should probably be "ark", and I guess it helps if you keep the subject short. I'm afraid that's all I can do to help, as I'm not involved with the (K)ubuntu packaging process.
Comment 10 Raphael Kubo da Costa 2014-11-18 11:56:37 UTC
*** Bug 341078 has been marked as a duplicate of this bug. ***
Comment 11 Raphael Kubo da Costa 2015-03-22 23:13:33 UTC
*** Bug 344745 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2015-05-16 22:23:08 UTC
*** Bug 347209 has been marked as a duplicate of this bug. ***
Comment 13 Christoph Feck 2015-05-16 22:24:02 UTC
*** Bug 341078 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2015-05-16 22:24:29 UTC
*** Bug 347009 has been marked as a duplicate of this bug. ***
Comment 15 Raphael Kubo da Costa 2015-05-19 08:27:47 UTC
*** Bug 347171 has been marked as a duplicate of this bug. ***
Comment 16 Raphael Kubo da Costa 2015-05-31 10:23:36 UTC
*** Bug 348483 has been marked as a duplicate of this bug. ***
Comment 17 Raphael Kubo da Costa 2015-05-31 18:05:15 UTC
*** Bug 345717 has been marked as a duplicate of this bug. ***
Comment 18 Elvis Angelaccio 2016-07-13 09:21:31 UTC
*** Bug 365062 has been marked as a duplicate of this bug. ***
Comment 19 Elvis Angelaccio 2016-12-29 13:28:25 UTC
*** Bug 374286 has been marked as a duplicate of this bug. ***