Bug 311573

Summary: Archive management: Dolphin gets fooled on extension
Product: [Applications] dolphin Reporter: David P. <sanete>
Component: panels: foldersAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description David P. 2012-12-12 15:13:26 UTC
Dolphin should rely on inspection of the file contents (headers, magic numbers), instead of its name, in order to detect an archive.

The "file" command detects zip files even when they have .jar extension.

Reproducible: Always

Steps to Reproduce:
1.I have configured to see inside Dolphin the content of archive files.
2.I have a zip file named foo.jar, Ark opens instead of seeing directly the contents of the zip file inside Dolphin
3.I rename the file to foo.zip and it works ok.

The same happens with foo.apk, another zip file, whose extension isn't zip.
Actual Results:  
Ark opens.

Expected Results:  
Seeing archive contents inside Dolphin.
Comment 1 Frank Reininghaus 2012-12-12 15:18:49 UTC
Thanks for the report. This has been reported already, and it was actually even 'fixed' in KDE 4.9.4, with the unwanted side effect that OpenDocument files like .odt, .ods, etc., which are also zip files, were opened like folders, rather than in an office application.

Note that you can actually open the file as a zip archive inside Dolphin by prepending its path+name with 'zip:' in the location bar.

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