Bug 175880
Summary: | Yelp fails to open any docbook files, with error "An unknown error occured There is no default action associated with this location." | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> |
Component: | yelp | Assignee: | Dave Malcolm <dmalcolm> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-12-20 04:51:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 150221 |
Description
Dave Malcolm
2005-12-15 22:08:30 UTC
Confirmed on another machine, with yelp-2.13.1-1 It's doing a gnome_url_show on the URL, which internally calls gnome_vfs_url_show_with_env, which appears to be returning GNOME_VFS_ERROR_NO_DEFAULT Looking in Nautilus at a typical file: /usr/share/gnome/help/user-guide/C/user-guide.xml It's reported as having mimetype: application/docbook+xml Open With tab gives no applications selected for handling files of type DocBook document. Looks like Yelp should be registered as a handler for DocBook files. yelp.desktop.in.in (from upstream tarball) doesn't include any mime types, and neither does the generated yelp.desktop (in the resulting rpm) See http://www.fedoraproject.org/wiki/ScriptletSnippets for related packaging notes for the specfile. That doesn't fix it, and running yelp /usr/share/gnome/help/user-guide/C/user-guide.xml also fails (yelp tries to spawn an external progam, and if it's registered to handle docbook, spawns itself in a loop) Looks like get_doc_type doesn't recognize the new mimetype for DocBook, and is returning YELP_DOC_TYPE_EXTERNAL; I'll patch this for our packages and send it upstream... Hmmm.. nautilus is reporting it as "application/docbook+xml", but inside yelp, gnome_vfs_get_mime_type is reporting it as "application/xml". (slow vs fast mime sniffing?) I'll patch it so that yelp can survive either... Grrr... at least it can start loading the user guide now, but gives an error dialog generating the HTML: Could not process document The document â/usr/share/gnome/help/user-guide/C/user-guide.xmlâ could not be processed. The file â/usr/share/yelp/xslt/db2html.xslâ is either missing, or it is not a valid XSLT stylesheet. On starting from a terminal we get some extra debug output: I/O warning : failed to load external entity "/usr/share/xml/gnome/xslt/d ocbook/html/db2html-bibliography.xsl" compilation error: file /usr/share/xml/gnome/xslt/docbook/html/db2html.xsl line 45 element include xsl:include : unable to load /usr/share/xml/gnome/xslt/docbook/html/db2html-bibliography.xsl Seems to affect all documentation, not just the user guide... This was with gnome-doc-utils-0.5.1-1; db2html-bibliography.xsl is indeed referenced but not installed (the various other stylesheets are) Looks like this was fixed 2 weeks ago in the upstream Makefile.am and we need a new upstream tarball of gnome-doc-utils: http://cvs.gnome.org/viewcvs/gnome-doc-utils/xslt/docbook/html/Makefile.am?rev=1.23&view=log I've filed the gnome-doc-utils problem here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175970 Building with the fix for the mimetype problem into rawhide as yelp-2.13.2-2 Sent upstream (with patch) here: http://bugzilla.gnome.org/show_bug.cgi?id=324296 |