Bug 311573 - Archive management: Dolphin gets fooled on extension
Summary: Archive management: Dolphin gets fooled on extension
Status: RESOLVED DUPLICATE of bug 188989
Alias: None
Product: dolphin
Classification: Applications
Component: panels: folders (show other bugs)
Version: 16.12.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-12 15:13 UTC by David P.
Modified: 2012-12-12 15:18 UTC (History)
0 users

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 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 ***