Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 888471

Summary: SVG images not being shown on the wiki, but error message
Product: Websites Reporter: ris <ris>
Component: WikiAssignee: Gentoo Infrastructure <infra-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: maffblaster, ris
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ris gentoo-dev 2022-12-26 01:49:29 UTC
There seems to be an issue with displaying SVG images on the wiki. It appears that SVG images uploaded to the wiki result in an error rather than displaying the image. SVGs that have been on the wiki for a while still work, but if they somehow get cache invalidated (such as by clicking "more>refresh"), a similar issue seems to occur for them - so on the face of it, the issue doesn't seem to be with the uploaded files.

I've made (Inkscape) and uploaded the simplest of images to test (https://wiki.gentoo.org/wiki/File:Testimage.svg), same issue. The error message displayed is:

"Error creating thumbnail: Error reading SVG:Error domain 1 code 1 on line 1 column 1 of file:///tmp/svg_016b15b415a8dbc67c1217db/Testimage.svg: internal error: Unfinished entity outside the DTD"

Here is a link to an image that has been on the wiki for a while and previously worked fine, but threw an error after clicking "more>refresh" in the wiki menu: https://wiki.gentoo.org/wiki/File:Larry_festive_hat.svg

An svg image that worked previously can be included in a page if the size is the same as inclusions on other pages. If the size is changes substantially however, it throws the error.

The error was first encountered when trying to insert an SVG image that has been working for a while on the wiki, into an article. 

Page on the wiki resuming this bug, but with embedded examples of the issue: https://wiki.gentoo.org/wiki/User:Ris/etc/wiki_svg_issue_2022

Maybe this issue could be linked to bug 738610, but they are different in that here we have an error message.

TIA everyone, ris.
Comment 1 Matthew Marchese Gentoo Infrastructure gentoo-dev 2022-12-26 04:59:37 UTC
This is more of an Infra change, as it has to do with dependencies on the host.

Thank you for the bug, ris!
Comment 2 Matthew Marchese Gentoo Infrastructure gentoo-dev 2022-12-26 05:02:05 UTC
This issue should now be resolved. The following SVG resize test you created now works for me:

https://wiki.gentoo.org/wiki/User:Ris/etc/wiki_svg_issue_2022

Please let me know if that is not the case for you.