Bug 368786

Summary: Unable to open RAR files with shared-mime-info 1.7
Product: [Applications] ark Reporter: Elvis Angelaccio <elvis.angelaccio>
Component: pluginsAssignee: Ragnar Thomsen <rthomsen6>
Status: RESOLVED FIXED    
Severity: major CC: demm, elvis.angelaccio, jonay.santana, mo78, peter.eszlari
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 16.08.2

Description Elvis Angelaccio 2016-09-14 08:02:27 UTC
The latest release of shared-mime-info introduced a new mimetype for RAR files and deprecated application/x-rar.

Reproducible: Always
Comment 1 Elvis Angelaccio 2016-09-14 10:22:54 UTC
Git commit 9a9a851049cd904f08c9594cc6aacf696886404e by Elvis Angelaccio.
Committed on 14/09/2016 at 10:09.
Pushed by elvisangelaccio into branch 'Applications/16.08'.

Add support for application/vnd.rar, fixes opening RAR with shared-mime-info 1.7

shared-mime-info 1.7 introduced the official IANA mimetype
`application/vnd.rar` and degraded `application/x-rar` to alias.

For now we need to register both mimetypes. Once distributions start
shipping shared-mime-info 1.7, we can drop the alias.

For this reason, we cannot have a reliable test case in mimetypetest.
Also, in `PluginLoader::sortByComment()` we need to check whether
mimetypes are valid, because `application/vnd.rar` might not be in
`QMimeDatabase()`.
FIXED-IN: 16.08.2

Closes T3729

M  +2    -2    autotests/kerfuffle/adddialogtest.cpp
M  +1    -1    autotests/kerfuffle/addtoarchivetest.cpp
M  +4    -4    autotests/kerfuffle/createdialogtest.cpp
M  +3    -1    kerfuffle/pluginmanager.cpp
M  +7    -2    plugins/clirarplugin/CMakeLists.txt
M  +9    -0    plugins/clirarplugin/kerfuffle_clirar.json.cmake
M  +7    -2    plugins/cliunarchiverplugin/CMakeLists.txt

http://commits.kde.org/ark/9a9a851049cd904f08c9594cc6aacf696886404e
Comment 2 Nick Stefanov 2016-09-18 09:23:35 UTC
This is a really annoying bug. I have to downgrade to 1.6.8...
Comment 3 Elvis Angelaccio 2016-10-17 15:49:25 UTC
*** Bug 370986 has been marked as a duplicate of this bug. ***
Comment 4 Elvis Angelaccio 2016-11-10 18:49:11 UTC
*** Bug 372300 has been marked as a duplicate of this bug. ***