Bug 1507305

Summary: Evince doesn't open a document in DjVu format by misidentifying the file mime-type
Product: [Fedora] Fedora Reporter: Bastián Díaz <diazbastian>
Component: evinceAssignee: Caolan McNamara <caolanm>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 27CC: alexl, caillon+fedoraproject, caolanm, diazbastian, dtardon, feborges, gnome-sig, john.j5live, mclasen, mkasik, rhughes, rstrode, sandmann, toni.andjelkovic
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-30 18:01:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot none

Description Bastián Díaz 2017-10-29 14:41:18 UTC
Created attachment 1345039 [details]
screenshot

Description of problem:
Evince does not display DjVu documents because they are badly recognized as images instead of multi-page documents.

Version-Release number of selected component (if applicable):
fedora workstation 27 (beta) with gnome 3.26.1
Evince 3.26.0

How reproducible:
Always

Steps to Reproduce:
1.Download a multipage DjVu document. Ex. http://djvu.org/docs/DjVu3Spec.djvu
2.Open with Evince

Actual results:
The document can not be opened, since it is alluded to that the image/vnd.djvu files are not supported (https://bugzilla.gnome.org/show_bug.cgi?id=754467)

Expected results:
The document is correctly recognized as a multipage DjVu and is displayed with Evince.

Additional info:

In the following report a developer mentions that Evince correctly recognizes the document in Debian (https://bugzilla.gnome.org/show_bug.cgi?id=787481) and friends who use Ubuntu (17.10) mention that it also works correctly, so I assume it is a specific distro issue.

Comment 1 Caolan McNamara 2017-10-29 20:44:46 UTC
Do you have evince-djvu installed ?

Comment 2 Bastián Díaz 2017-10-29 21:28:55 UTC
(In reply to Caolan McNamara from comment #1)
> Do you have evince-djvu installed ?

Yes, I even reinstalled Evince and the plugins to verify if it was an error, however, the system continues to recognize my documents as DjVu images and not multipage documents. For this same reason, gnome-photos recognizes the documents (if I move them to the folder ~/Images) and when trying to open them it closes unexpectedly.

Comment 3 David Tardon 2017-10-30 07:29:08 UTC
Works fine here.What does

xdg-mime query filetype /path/to/a/multipage/djvu/file

say? (The expected result is "image/vnd.djvu+multipage".)

Comment 4 Bastián Díaz 2017-10-30 15:07:39 UTC
(In reply to David Tardon from comment #3)
> Works fine here.What does
> 
> xdg-mime query filetype /path/to/a/multipage/djvu/file
> 
> say? (The expected result is "image/vnd.djvu+multipage".)

My case is the following:
xdg-mime query filetype /home/diazbastian/DjVu3Sp.djvu 
image/vnd.djvu

I do not know what the problem is, even I restarted the tracker index.

Comment 5 Bastián Díaz 2017-10-30 17:56:05 UTC
Update:

It seems that this problem is very specific to my device and I am getting help from a gnome developer. It doesn't make sense to keep this ticket open. Thank you.

Comment 6 Caolan McNamara 2017-10-30 18:01:48 UTC
I'll call that closed upstream then

Comment 7 Toni Andjelkovic 2017-11-18 23:51:52 UTC
This is a duplicate of #1513188 "multipage djvu files are misidentified".

Comment 8 Caolan McNamara 2017-11-20 15:27:12 UTC

*** This bug has been marked as a duplicate of bug 1513188 ***