Bug 91837

Summary: Problem rendering svg file that contains file path network
Product: cairo Reporter: Cherubino <cherubino.ferrario>
Component: svg backendAssignee: Emmanuel Pacaud <emmanuel.pacaud>
Status: RESOLVED NOTOURBUG QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

Description Cherubino 2015-09-01 13:21:30 UTC
Hello to all,

i use rsvg_handle_new_from_file function from librsvg-2-2.dll for render the following svg file:

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="4160" height="2110" preserveAspectRatio="xMinYMin slice" viewBox="0 0 4160 2110">
          <g id="viewBox_0">
            <defs>
              <rect id="viewBox_0_zone" x="0" y="0" width="2080" height="2110"/>
            </defs>
            <clipPath id="viewBox_0_clipPath">
              <use xlink:href="#viewBox_0_zone"/>
            </clipPath>
          </g>
          <g id="viewBox_1">
            <defs>
              <rect id="viewBox_1_zone" x="2080" y="0" width="2080" height="2110"/>
            </defs>
            <clipPath id="viewBox_1_clipPath">
              <use xlink:href="#viewBox_1_zone"/>
            </clipPath>
          </g>
          <g id="background_0" transform="matrix(1 0 0 1 0 0)">
            <defs>
              <rect id="background_0_zone" x="0" y="0" width="4160" height="2110"/>
            </defs>
            <clipPath id="background_0_clipPath">
              <use xlink:href="#background_0_zone" overflow="visible"/>
            </clipPath>
            <rect id="background_background" width="4160" height="2110" fill="#ffffff" fill-opacity="1"/>
          </g>
          <g>
            <g id="image_0" transform="matrix(1 0 0 1 0 0)">
              <defs>
                <filter id="white">
                  <feColorMatrix in="SourceGraphic" type="matrix" values="1 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 1 0" result="to_white"/>
                </filter>
                <rect id="image_0_zone" x="0" y="0" width="4160" height="2110"/>
              </defs>
              <clipPath id="image_0_clipPath">
                <use id="image_0_clipPathUse" xlink:href="#image_0_zone"/>
              </clipPath>
              <rect id="image_0_background" width="4160" height="2110" fill="#ffffff" fill-opacity="0"/>
              <filter id="image_0_filter">
                <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/>
                <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/>
              </filter>
              <g id="image_0_groupImage" clip-path="url(#image_0_clipPath)" filter="url(#image_0_filter)">
                <image id="image_0_image" xlink:href="file://fabrirevenge/CDPRODIG/Monviso.jpg" width="3664" height="2748" transform="matrix(1.1353711790393013 0 0 1.1356297093649086 2.842170943040401e-14 -504.21959095801947)"/>
              </g>
              <rect id="image_0_border" fill="none" stroke="none" stroke-width="0" style="shape-rendering:crips-edges;" x="0" y="0" width="4160" height="2110"/>
            </g>
          </g>
        </svg>

In this file there are the following path:  xlink:href="file://fabrirevenge/CDPRODIG/Monviso.jpg" 
that is a network path.

The result is a blank image.

If I use the local path everything works correctly.

The library librsvg does not support network paths?

Thanks for your help.

Best regards

Chherubino
Comment 1 Emmanuel Pacaud 2015-09-01 13:57:52 UTC
It is a librsvg issue, not a cairo one. Please open a bug report here:

https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg
Comment 2 Cherubino 2015-09-01 14:09:00 UTC
(In reply to Emmanuel Pacaud from comment #1)
> It is a librsvg issue, not a cairo one. Please open a bug report here:
> 
> https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg

I'm sorry.  Thanks

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.