Bug 1249642

Summary: mc misses the support for zip archives with non-ZIP MIME
Product: Red Hat Enterprise Linux 7 Reporter: Matěj Cepl <mcepl>
Component: mcAssignee: Denys Vlasenko <dvlasenk>
Status: CLOSED ERRATA QA Contact: Iveta Wiedermann <isenfeld>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: dhoward, isenfeld
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 00:06:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1295826, 1296180, 1313485    
Attachments:
Description Flags
Patch none

Description Matěj Cepl 2015-08-03 13:13:43 UTC
Description of problem:
There are too many document formats which are actually just a
zipfile containing bundle of XML (or other) files with some
metadata included. OpenDocument format, OOXML, Java JAR file are
just most famous examples of this trend.

All these files although they are in fact zipfiles have they own
MIME types and file(1) reports something else than a "Zip
archive". And that's a good idea. However, mc could be a very
good tool for diving inside these archives.

Normally, I was able to investigate the content of the document
by renaming it to *.zip file and then opening it via mc.

Unfortunately, it doesn't work anymore. After some investigation
it seems that /etc/mc/mc.ext contains only the rule:

    # zip
    type/i/^zip\ archive
	    Open=%cd %p/uzip://
	    View=%view{ascii} /usr/libexec/mc/ext.d/archive.sh view zip

whereas the upstream contains also

    # zip
    shell/i/.zip
            Open=%cd %p/uzip://
            View=%view{ascii} /usr/libexec/mc/ext.d/archive.sh view zip

Unfortunately, this rule is missing from the RHEL package.

Version-Release number of selected component (if applicable):
mc-4.8.7-8.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.rename *.odt file to *.odt.zip
2.press ENTER on this file in mc
3.

Actual results:
nothing happens

Expected results:
the file should open as a directory and should be browseable.

Comment 4 Denys Vlasenko 2016-01-14 19:22:08 UTC
Have patch, need pm_ack+ qa_ack+ to proceed

Comment 5 Denys Vlasenko 2016-01-14 19:22:46 UTC
Created attachment 1114938 [details]
Patch

Comment 7 Denys Vlasenko 2016-03-01 18:29:46 UTC
New build:

https://brewweb.devel.redhat.com/taskinfo?taskID=10582791

Comment 11 errata-xmlrpc 2016-11-04 00:06:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2181.html