Bug 166986 - Ark-KDE4 fails to open ZIPs and other archives
Summary: Ark-KDE4 fails to open ZIPs and other archives
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: HI grave
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
: 160241 165783 166391 169292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-19 12:08 UTC by David Dempster
Modified: 2008-09-07 02:16 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Dempster 2008-07-19 12:08:42 UTC
Version:            (using KDE 4.0.98)
Installed from:    Ubuntu Packages
OS:                Linux

I've just been experimenting with Ark for KDE 4, creating compressed archives on the command line and then trying to open them with the GUI.

Gzip and Bzip2 files open just fine, as do rar archives.

Zip, Compress, Zoo, 7z, LZMA, LZO, LZH and probably others fail.  The window comes up saying "No file loaded", the same as if you specify a file that does not exist.  It leaves you thinking the file must be corrupt.

By way of comparison, GNOME's "file-roller" can open all of these.
Comment 1 Maxim Myskov 2008-07-20 20:03:36 UTC
Partially confirmed. zip files works well but 7z doesn't on KDE 4.0.98
Comment 2 Dario Andres 2008-07-20 20:04:28 UTC
(KDE 4.0.99 (4.1RC1+) in ArchLinux)

I can open ZIP files (I have zip, unzip and libzip installed)
When trying to open a 7z file , Ark says "No compressed file loaded" (but I have p7zip installed)

In the Ark's open file dialog it doesn't show "7z" in supported extensions combobox, but shows "zip","rar","tar.gz","tar.bz" ..

When I try to open the 7z file from Ark open file dialog although it doesn't show 7z files, I get this in the shell log:

ark(4850)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/x-7z-compressed" ,  "Kerfuffle/Plugin"  : returning  0  offers
Comment 3 David Dempster 2008-07-21 01:06:10 UTC
I've just purged and reinstalled, and the behaviour is the same.  However, I did notice that although most of my KDE is 4.0.98, this particular package is actually 4.0.83.

My previous test was with individually compressed files.  I've tried again with a tar archive, compressed.  The result were slightly different.

I can open rarred, gzipped or bzip2ed files whether they contain a tar or not.  They also work whether I use a short (.tgz) or long (.tar.gz) extension.  They fail to work with an arbitrary (e.g. .tarball) extension though.

Zip, Zoo, 7z, LZMA, LZO, LZH all still fail to work, whether they contain a tar archive or not.

The strange thing is that Ark can open a tar archive compressed with compress (.tar.Z), but not an individual file (.Z).

The drop-down menu in Ark says that it can deal with plain tar archives, tar archives compressed with gzip/bzip2/compress, and rar archives.  That much is true, so I suppose that makes this more a feature request than a bug report, but I believe that an archiver that can't handle zip and 7z is broken. 

GNOME's file-roller can deal with all of these, except that it too is thwarted by arbitrary extensions.  Neither Ark nor file-roller can deal with files compressed with RZIP or LRZIP.
Comment 4 Yew Ming Chen 2008-07-26 18:18:57 UTC
KDE4 Ark has been somewhat rewritten and does not support all the formats that it previously support in KDE 3.5.x
Will work on adding more archive support.
Comment 5 Harald Hvaal 2008-08-03 06:19:03 UTC
*** Bug 165783 has been marked as a duplicate of this bug. ***
Comment 6 Harald Hvaal 2008-08-04 01:47:45 UTC
*** Bug 160241 has been marked as a duplicate of this bug. ***
Comment 7 Harald Hvaal 2008-08-04 05:37:04 UTC
*** Bug 166391 has been marked as a duplicate of this bug. ***
Comment 8 Harald Hvaal 2008-08-04 05:38:31 UTC
A lot of bug is duping this. Currently my main priority.
Comment 9 Harald Hvaal 2008-08-04 17:30:33 UTC
SVN commit 842035 by metellius:

CCBUG: 166986
Fixing zip archive plugin didn't extract at all when told to extract all files.
(only extracted for selected files)


 M  +8 -3      part/part.cpp  
 M  +78 -30    plugins/libzipplugin/zipplugin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=842035
Comment 10 Harald Hvaal 2008-08-05 16:17:56 UTC
SVN commit 842549 by metellius:

CCBUG: 166986
Will now make sure that parent folders are also created even when they are not selected.
Is also less picky with the layout of the zipfiles now (will accept just files with paths, without the directories as separate entries.


 M  +30 -3     part/part.cpp  
 M  +1 -0      part/part.h  
 M  +17 -1     plugins/libzipplugin/zipplugin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=842549
Comment 11 Harald Hvaal 2008-08-16 09:04:30 UTC
I have done a lot of testing, fixing a few filename bugs as well, and all the ones reported in this bug as not working not seem to work with the trunk version. Many of the file formats reported as not working are simply not implemented, and should therefore rather be reported as wishlist items. I am aware of them, and the goal is for ark to eventually support as many formats as kde3 ark did.

Marking this bug closed, but if someone actually has a zip/tar.gz/tar.bz2/cpio/rar/tar file that doesn't work correctly with ark, please post it here or in a new bug.
Comment 12 Harald Hvaal 2008-08-17 05:40:28 UTC
*** Bug 169292 has been marked as a duplicate of this bug. ***
Comment 13 Gregor B. Rosenauer 2008-08-18 21:55:48 UTC
How does archive-support in Ark work? Does Ark use (g)zip and other command line-programs in the background or does it handle all these types by itself?
I'd suppose there are plugins for actually interfacing with the command line tools?

Sorry but I have to ask why Ark has been bundled with KDE4.1 when it does not even support ZIP or RAR?
Comment 14 Harald Hvaal 2008-08-19 01:34:18 UTC
(In reply to comment #13)
> How does archive-support in Ark work? Does Ark use (g)zip and other command 
line-programs in the background or does it handle all these types by itself? 
I'd suppose there are plugins for actually interfacing with the command line 
tools?

It avoids command-line programs as much as possible. So far, rar is the only 
format for which it is used.


> Sorry but I have to ask why Ark has been bundled with KDE4.1 when it does not 
even support ZIP or RAR?

It does support it, it was just broken and bugfixing was started too late. 
First chance for fixes to be released is kde 4.1.1. Expect less buggy behaviour 
then.
Comment 15 Jose 2008-09-03 17:05:28 UTC
I've installed KDE 4.1.1 on Kubuntu today and still I cannot open zip files. If I load them with either dolphin or konsole, I get an empty ark window with a message saying that no archive has been loaded. If I try to open it through ark's own open dialog, it does not show zip as a supported format (while it shows rar as a supported type, which is strange).
Comment 16 Harald Hvaal 2008-09-03 17:31:40 UTC
I tried installing ark on my kubuntu as well, and the problem was visible here as well. Having a look at the output quickly showed the problem; libarchive is used, and not libzip, for opening the zip files. Libarchive is said to support zip files, but from what I read it's hackish and just readonly.

Next, examining "dpkg -L ark-kde4" output reveals why this is so; kubuntu does not include the zip plugin it seems. 
/usr/lib/kde4/share/kde4/services
/usr/lib/kde4/share/kde4/services/kerfuffle_bk.desktop
/usr/lib/kde4/share/kde4/services/kerfuffle_rar.desktop
/usr/lib/kde4/share/kde4/services/kerfuffle_libarchive.desktop

I did not try ark on kde 4.1.0, but I'm guessing that if they didn't compile with libzip back then they might have been reluctant to change this for 4.1.1 and therefore excluded the zip plugin. Just a guess though. Either way it's a problem with the distro.
Comment 17 Gregor B. Rosenauer 2008-09-06 22:35:28 UTC
works here on Kubuntu Hardy x86 + KDE 4.1.1 with Ark Version 2.10.999
(relieved:)
btw I was surprised that drag&drop of files is not supported, but this is something for a separate RFE...

Comment 18 Harald Hvaal 2008-09-07 02:16:09 UTC
The problem was kubuntu being compiled without libzip-dev installed. They fixed it for 4.1.1 after I notified them.

As for drag and drop, it's in trunk but it was too big of "fix" to actually backport, so you'll have to wait for 4.2 (yes I know it sucks).