After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763875 - Images referenced by absolute path don't load
Images referenced by absolute path don't load
Status: RESOLVED OBSOLETE
Product: yelp
Classification: Applications
Component: Mallard
3.18.x
Other Linux
: Normal major
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-18 14:17 UTC by Gunnar Hjalmarsson
Modified: 2018-05-22 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gunnar Hjalmarsson 2016-03-18 14:17:48 UTC
This is a forward of the Ubuntu bug https://launchpad.net/bugs/1559070

In Ubuntu Help we have some links with absolute paths to SVG files, and they don't show up with yelp 3.18.

SVG files are displayed in GNOME Help, but there the paths are relative (included in package). Can't tell for sure if that explains it.

Another issue is that calling yelp with the path to a .page file as argument fails with: "Unknown Error - URL cannot be shown".

Common denominator seems to be "file paths".

Downgrading to version 3.16.1-1ubuntu1 of yelp and libyelp0 fixes both issues, but I've been told that's not an option for Ubuntu 16.04 which is going to be released in a few weeks.
Comment 1 Iain Lane 2016-03-18 16:03:25 UTC
This is two bugs which aren't quite the same.

The absolute-commandline-argument one is fixed by e5f3a147aec6aeb4629194e1d3a3eefc1d4716e9 (would be good if this could be cherry-picked onto a 3.18 branch).

The absolute-image-path bug is still broken with master. I'm poking around but I don't yet understand all the URL transformations that are going on so I'm not sure why this isn't passed to webkit properly.
Comment 2 Gunnar Hjalmarsson 2016-03-19 01:24:23 UTC
I have proposed a patch of Ubuntu's yelp version with the fix which Iain mentioned, and - as a workaround for now - replaced the absolute paths in Ubuntu Help with relative paths.
Comment 3 Doug Smythies 2016-03-21 22:03:11 UTC
The absolute-image-path bug is also preventing us from properly compiling the Ubuntu server guide PDF version. Yelp is not installed on my compile server, so the issue must also exist in yelp-tools and/or yelp-xsl.

It is not practical to use absolute paths in the serverguide for this step, but I have done so just so that I could complete a compile (i.e. that addresses are specific to my computer, and wouldn't make sense on someone else's).

Reference: https://bugs.launchpad.net/serverguide/+bug/1559783
Comment 4 Shaun McCance 2016-03-22 14:13:44 UTC
Yet another regression from the WebKit2 port. Sorry, it changed a lot of internals, and it's going to take some time to shake out all the bugs.

As a workaround, I've found that using a file:// URI instead of a regular absolute path does work. So instead of this:

<media src="/usr/share/icons/ubuntu-mono-light/status/22/system-devices-panel.svg"/>

Use this:

<media src="file:///usr/share/icons/ubuntu-mono-light/status/22/system-devices-panel.svg"/>
Comment 5 Doug Smythies 2016-03-22 15:35:03 UTC
(In reply to Doug Smythies from comment #3)
> The absolute-image-path bug is also preventing us from properly compiling
> the Ubuntu server guide PDF version. Yelp is not installed on my compile
> server, so the issue must also exist in yelp-tools and/or yelp-xsl.

Shaun pointed out that yelp-tools and yelp-xsl are not involved in compiling the Ubuntu Server guide PDF, and so they are not at fault. I tested by uninstalling those packages, and I was still able to compile the serverguide. Sorry for the noise.
Comment 6 GNOME Infrastructure Team 2018-05-22 13:09:51 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp/issues/112.