Bug 368786 - Unable to open RAR files with shared-mime-info 1.7
Summary: Unable to open RAR files with shared-mime-info 1.7
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
: 370986 372300 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-14 08:02 UTC by Elvis Angelaccio
Modified: 2016-11-10 18:49 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 16.08.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***