Bug 357134 - Ark is unable to open RAR archives after update to 15.12
Summary: Ark is unable to open RAR archives after update to 15.12
Status: RESOLVED UPSTREAM
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 15.12.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
: 367535 385325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-24 23:04 UTC by Ongun Kanat
Modified: 2019-01-02 05:40 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ongun Kanat 2015-12-24 23:04:01 UTC
Ark 15.12 cannot open specific RAR archives that 15.08 can open. I have two files that I'm sure they are not broken (I can open both of them in Ark 15.08 and WinRAR).

In the first file Ark 15.12 shows the file names in the brand new comment section but contents of the archive are not displayed. I can extract its contents via Dolphin's right click menu.
You can access the file from here: https://goo.gl/ZQCEux
The screenshot for it: https://goo.gl/yZDCKH
It works on Ark 15.08: https://goo.gl/iW3Djq

In the other one Ark 15.12 completely denies opening the file. In the version 15.08, Ark asks for a file type for this file if I select RAR It opens and shows me the contents correctly (The ask option has removed but this is another bug report). I can also extract it using Ark 15.08.
At the moment I don't have a fast connection but I will upload the file soon (~200MiB)
The screenshot of the error: https://goo.gl/xnli7V
The option window in Ark 15.08: https://goo.gl/s7mjeI
And It also works on Ark 15.08: https://goo.gl/537Fi8

Reproducible: Always

Steps to Reproduce:
Open a specific RAR archive.

Actual Results:  
Files are not shown or Ark 15.12 denies opening the file

Expected Results:  
Ark opens and contents are correctly shown
Comment 1 Elvis Angelaccio 2015-12-25 08:57:00 UTC
(In reply to Ongun Kanat from comment #0)
> Ark 15.12 cannot open specific RAR archives that 15.08 can open. I have two
> files that I'm sure they are not broken (I can open both of them in Ark
> 15.08 and WinRAR).
> 
> In the first file Ark 15.12 shows the file names in the brand new comment
> section but contents of the archive are not displayed. I can extract its
> contents via Dolphin's right click menu.
> You can access the file from here: https://goo.gl/ZQCEux
> The screenshot for it: https://goo.gl/yZDCKH
> It works on Ark 15.08: https://goo.gl/iW3Djq
> 
This is a known issue that will be fixed in Ark 15.12.1. As a temporary workaround, please remove the spaces from the archive's filename. Then Ark 15.12 will be able to open the archive again.

> In the other one Ark 15.12 completely denies opening the file. In the
> version 15.08, Ark asks for a file type for this file if I select RAR It
> opens and shows me the contents correctly (The ask option has removed but
> this is another bug report). I can also extract it using Ark 15.08.
> At the moment I don't have a fast connection but I will upload the file soon
> (~200MiB)
> The screenshot of the error: https://goo.gl/xnli7V
> The option window in Ark 15.08: https://goo.gl/s7mjeI
> And It also works on Ark 15.08: https://goo.gl/537Fi8
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> Open a specific RAR archive.
> 
> Actual Results:  
> Files are not shown or Ark 15.12 denies opening the file
> 
> Expected Results:  
> Ark opens and contents are correctly shown

Please update your archlinux Ark package to version 15.12.0-2, that should make Ark able to open RAR archives again. If this update does not fix it, please tell me.
Comment 2 Ongun Kanat 2015-12-26 23:05:25 UTC
I've updated the package to version 15.12.0-2 however I cannot open the file here: https://goo.gl/LDoaJ7
Comment 3 Elvis Angelaccio 2015-12-27 09:08:54 UTC
Confirming. Ark 15.12 assign higher priority to mimetypes detected by content. However, for some reasons, shared-mime-info detects this archive as PDF. I will report this bug upstream, but in the meantime Ark could fallback to the mimetype detected from the extension, which is going to be RAR as expected.
Comment 4 Elvis Angelaccio 2015-12-27 09:13:04 UTC
I forgot to ask you: can you describe exactly how was this RAR archive created?
It might also be a fault of the program used to create the archive...
Comment 5 Ongun Kanat 2015-12-31 15:43:31 UTC
It is a very old archive I don't remember how it was created but probably an old version of WinRAR might be used.
Comment 6 Elvis Angelaccio 2016-01-04 17:32:54 UTC
The bug has been fixed upstream: https://bugs.freedesktop.org/show_bug.cgi?id=93549

(In reply to Elvis Angelaccio from comment #3)
> in the meantime Ark could fallback to the mimetype detected from the extension

On second thought, not sure anymore this is a good idea. If Ark would have done so, this bug would not have been discovered and the shared-mime-info devs could not have fixed it.
For now, I'm marking this as resolved upstream.

If you want, you can open a report on bugs.archlinux.org and ask to update the shared-mime-info package with this commit: http://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=10fc17ec61c5b5c6c0e6ea2c8d7a2123271d07e3

Otherwise, you will have to wait for the next shared-mime-info public release.
Comment 7 Elvis Angelaccio 2016-08-19 08:58:40 UTC
*** Bug 367535 has been marked as a duplicate of this bug. ***
Comment 8 Elvis Angelaccio 2017-10-03 14:37:21 UTC
*** Bug 385325 has been marked as a duplicate of this bug. ***