Bug 90743 - Ark does not recognize J2EE file extensions .ear and .war, but can be opened as .zip
Summary: Ark does not recognize J2EE file extensions .ear and .war, but can be opened ...
Status: RESOLVED DUPLICATE of bug 79023
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 10:24 UTC by David Delbecq
Modified: 2008-06-28 16:15 UTC (History)
2 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 Delbecq 2004-10-04 10:24:50 UTC
Version:           2.4.0 (using KDE 3.3.0,  (3.1))
Compiler:          gcc version 3.3.4 (Debian 1:3.3.4-12)
OS:                Linux (i686) release 2.6.8-1-686-smp

Ark does not recognize the .war (webArchive) and .ear (Enterprise Archive) file format for java. Those files are actually renamed .jar files which are actually .zip files (with some specific files in it, but you don't care as long as all you want is extraction of content).

I saw in bug list a wish to recognize webArchives (.war) as .tar.gz and marked as done. Please keep in mind most .war you may download from the net are java web archive (zip), not konqueror made copy of a web site. War and Ear are java entreprise application server files. May be naming those konqueror files Web archives will lead to confusion in future.

Thanks for consideration
Comment 1 David Delbecq 2004-10-04 10:28:31 UTC
Additional note, the 'erroneous' Bug report on .war file format Bug 79023.
Comment 2 Henrique Pinto 2004-10-05 14:48:00 UTC
EAR support may be added. For WAR support, you'll first have to convince someone else of changing Konqueror's Web Archive MIME-type (or maybe it is possible to have a workaround, I might try).
Comment 3 David Delbecq 2004-10-05 14:55:31 UTC
You can simply check the magic at begin of zip file to chose between konqueror Web-Archive and java webarchive. Sent a bug to konqueror bug track about the .war too (see Bug 90791).

Btw, i didn't know ark was using the konqueror mime-types when doing a file-open...
Comment 4 Marius Kruger 2005-06-28 18:55:34 UTC
Maybe you could make how a .war file is viewed configurable (in a file or in the options menu).
I got Konqueror to open them with Ark,
But its really annoying to have to choose which type of archive I want to view it as.
Jar files are handled so nicely it makes my life so much easier, if only war files could work as well.

thanks you guys for the great work!
Comment 5 David P James 2007-01-16 02:08:38 UTC
re: comment #1

Being the reporter of bug 79023, I take some exception to the notion that it is "erroneous". It is nothing of the sort. Konqueror has the ability to create archives of a webpage. FACT. They are given the mime-type application/x-webarchive. FACT. The mime type application/x-webarchive is a renamed .tar.gz. FACT. The extension to application/x-webarchive was assigned as .war. FACT. Nothing erroneous about my report.

Given that there is another .war out there, it may be reasonable to give it another extension, though bug 44431 doesn't seem to be going anywhere in that regard

As it stands right now, the association of x-webarchive as a tar.gz has been dropped from Ark, and, to make matters worse, Konqueror doesn't even display them now, yet it can still create them. Sigh.
Comment 6 Thomas Damgaard 2008-06-28 14:22:44 UTC
Bug #79023 (http://bugs.kde.org/show_bug.cgi?id=79023) seems to be a duplicate of this.
Comment 7 Bram Schoenmakers 2008-06-28 16:15:38 UTC
Thanks for pointing out, Thomas.

*** This bug has been marked as a duplicate of 79023 ***