Bug 174701

Summary: Okular fails to open incorrectly named CBR file
Product: [Applications] okular Reporter: Chris <chris.crutch>
Component: Comicbook backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chris 2008-11-09 12:29:02 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

I have some files with extension CBR, which should be (according to the conventions of the extension) a RAR archive.  In actuality, the files in question are ZIP archives that should (again, according to convention) have the extension CBZ.

If I try to open the CBR files in Okular, nothing is shown.  It is as if the file is corrupted.  If I change the extension to the proper one of CBZ, Okular will open and display that same file perfectly.

Perhaps Okular could, as dedicated comic book reading programs do, determine the structure of the file and open it appropriately, rather than relying on the extension to know the proper archive type.  I tried to open these CBR files in Okular, and by Okular's failure to open them, thought the files had been corrupted.
Comment 1 Pino Toscano 2008-11-09 15:56:04 UTC
SVN commit 882007 by pino:

Hack around the fact that CBR or CBZ documents can ahve the wrong extension.
(And I wonder, if the only way to recognize them is via extension, wtf?)

BUG: 174701


 M  +8 -2      document.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=882007
Comment 2 Pino Toscano 2008-11-09 15:59:32 UTC
SVN commit 882010 by pino:

Backport: hack around the fact that CBR or CBZ documents can ahve the wrong extension.

CCBUG: 174701


 M  +5 -2      document.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=882010