Bug 1261824 - mc cannot handle JAR files ("Java Jar file data (zip)" vs. "Java archive data (JAR)")
Summary: mc cannot handle JAR files ("Java Jar file data (zip)" vs. "Java archive dat...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mc
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-10 09:12 UTC by Damian Wrobel
Modified: 2016-07-19 17:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 17:50:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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

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

$ rpm -qv mc
mc-4.8.13-1.fc22.i686
$ rpm -qv file
file-5.22-4.fc22.i686

How reproducible:
100%

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 17:50:51 UTC
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
bug.

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.