[go: up one dir, main page]

Suprious "Unsupported URI" warning for web hyperlinks

Summary:

When opening an SVG file containing a web hyperlink (e.g. <a xlink:href="http://example.com">) a warning such as the following is produced:

** (org.inkscape.Inkscape:1263873): WARNING **: 16:25:16.478: Unsupported URI

Unfortunately I didn't manage to get my build environment into a state where I could bisect to find out when the bug was introduced, but it appeared between the 1.3.2 and 1.4.0 releases.

Steps to reproduce:

  • Open Inkscape
  • Create any shape
  • Right-click, "Create anchor (hyperlink)"
  • Set the Href to a valid web URL (which doesn't contain a URL fragment (i.e. #...)), for example http://example.com.
  • Save the file
  • Close Inkscape
  • Re-open the file and note the warning printed in the terminal.

What happened?

A warning is printed for valid hyperlinks.

What should have happened?

No warning should be produced when a hyperlink is present in a document.

Sample attachments:

example.svg

Version info

Inkscape 1.4.1 (93de688d07, 2025-03-30)

                      Compile  (Run)
    GLib version:     2.84.1
    GTK version:      3.24.49 (3.24.49)
    glibmm version:   2.66.8
    gtkmm version:    3.24.10
    libxml2 version:  2.13.7
    libxslt version:  1.1.43
    Cairo version:    1.18.4 (1.18.4)
    Pango version:    1.56.3 (1.56.3)
    HarfBuzz version: 11.0.1 (11.2.0)

    OS version:       Arch Linux

The above version info comes from the Arch-distributed build of Inkscape but I've also verified that this bug exists in all of the official AppImage builds back to 1.4.0, but does not exist in the 1.3.x series.