Bug 1261824 - mc cannot handle JAR files ("Java Jar file data (zip)" vs. "Java archive data (JAR)")
mc cannot handle JAR files ("Java Jar file data (zip)" vs. "Java archive dat...
Product: Fedora
Classification: Fedora
Component: mc (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jindrich Novy
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-09-10 05:12 EDT by Damian Wrobel
Modified: 2016-07-19 13:50 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-19 13:50:51 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Damian Wrobel 2015-09-10 05:12:19 EDT
Description of problem:
mc doesn't handle properly "Java archive data (JAR)" files.

Version-Release number of selected component (if applicable):

$ rpm -qv mc
$ rpm -qv file

How reproducible:

Steps to Reproduce:
1. $ wget http://apache.belnet.be/cxf/3.1.2/apache-cxf-3.1.2.tar.gz
2. $ tar -zxf apache-cxf-3.1.2.tar.gz
3. Try go open apache-cxf-3.1.2/lib/cxf-core-3.1.2.jar with mc

Actual results:
It doesn't work.

Expected results:
Should work.

Additional info:

$ file apache-cxf-3.1.2/lib/cxf-core-3.1.2.jar
apache-cxf-3.1.2/lib/cxf-core-3.1.2.jar: Java archive data (JAR)

So we have two different data types (reported by 'file' and handled by 'mc'):
file:           Java archive data (JAR)
/etc/mc/mc.ext: Java Jar file data (zip)

Applying the following patch works for me:
$ diff -u mc.ext.orig mc.ext 
--- mc.ext.orig 2015-09-10 10:51:45.459048767 +0200
+++ mc.ext      2015-09-10 10:52:18.636675156 +0200
@@ -691,7 +691,7 @@
        View=%view{ascii} /usr/libexec/mc/ext.d/archive.sh view zip
 # jar(zip)
-type/i/^Java\ Jar\ file\ data\ \(zip\)
+type/i/^Java\ archive\ data\ \(JAR\)
        Open=%cd %p/uzip://
        View=%view{ascii} /usr/libexec/mc/ext.d/archive.sh view zip

But I'm not sure if the old "Java Jar file data (zip)" data type can be safely removed.
Comment 1 Fedora End Of Life 2016-07-19 13:50:51 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.