Bug 447023 - Unable to open certain .cbr files
Summary: Unable to open certain .cbr files
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: Comicbook backend (show other bugs)
Version: 21.08.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-15 12:44 UTC by Boyko
Modified: 2022-01-17 04:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Working cbr (1.28 MB, image/png)
2021-12-16 17:22 UTC, Boyko
Details
CBR Error (251.75 KB, image/png)
2021-12-16 17:23 UTC, Boyko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boyko 2021-12-15 12:44:43 UTC
I couldn't open cbr file types with Okular until I installed unrar and libunrar. I thought that the problem was resolved until I noticed some cbr files worked while others didn't.
What was different between the two cbr files was the folder structure when opened with ark.
For instance Okular had no problem opening cbr files with a parent folder i.e. :
parent folder/
    >folder1
    >folder2

While cbr files without the parent folder didn't work:
>folder1
>folder2


Reproducible: Always

Steps to Reproduce:
1. Open a cbr file that doesn't have a parent folder with Okular

Actual Results:  
Get Okular error message saying "Could not open file:///home/user/comics.cbr."

Expected Results:  
Open the comic cbr file with Okular
Comment 1 Boyko 2021-12-15 13:13:00 UTC
I made a test by archiving with rar, and the cbr file worked even though there was no parent folder.
The other difference is that my cbr file had Mode "drwxr-xr-x" while the cbr that didn't work had "...D..." Mode. I don't know how to make a rar file with "...D..." Mode to test it.
Comment 2 Boyko 2021-12-15 13:23:56 UTC
(In reply to Boyko from comment #1)
> I made a test by archiving with rar, and the cbr file worked even though
> there was no parent folder.
> The other difference is that my cbr file had Mode "drwxr-xr-x" while the cbr
> that didn't work had "...D..." Mode. I don't know how to make a rar file
> with "...D..." Mode to test it.

Correction, the folders had "...D..." while the files themselves didn't have any Mode. They were "......." when opened with Ark
Comment 3 Albert Astals Cid 2021-12-15 22:26:17 UTC
Please attach such a file
Comment 4 Boyko 2021-12-16 17:22:23 UTC
Created attachment 144607 [details]
Working cbr
Comment 5 Boyko 2021-12-16 17:23:03 UTC
Created attachment 144608 [details]
CBR Error
Comment 6 Boyko 2021-12-16 17:25:50 UTC
I don't know what the copyright is with that manga, so I don't know if I should attach it to the bug report.
Comment 7 Boyko 2021-12-16 17:34:38 UTC
(In reply to Boyko from comment #6)
> I don't know what the copyright is with that manga,
> so I don't know if I should attach it to the bug report.

Here's a torrent with the file nyaa.si/view/1244014
Comment 8 Boyko 2021-12-16 17:38:20 UTC
Okular can't open from volume 44 to 50 I think.
Comment 9 Albert Astals Cid 2021-12-17 22:47:45 UTC
Yeaaaaaaaaah, i'm not going to download a torrent with random pirated stuff from the internet, please provide an actual file you can share with us that has this problem.
Comment 10 Boyko 2021-12-18 15:56:08 UTC
Well, the files are around 60mb and I can't edit them. So I guess the only way is to wait and find other such files or install Windows and start testing with winrar and different archive options because I don't know how to get the "......." modes on the files with rar on Linux.
Comment 11 Bug Janitor Service 2022-01-02 04:34:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2022-01-17 04:36:41 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!