gt-svg: renderer.lite.DrawTest is failing on Windows (handling of href parameters)

Description

org.geotools.renderer.lite.DrawTest is failing in gt-svg module, for these two tests:

  • DrawTest.testParametricOnlyFill

  • DrawTest.testParametricAllValues

When running the test with -Dorg.geotools.image.test.interactive=true as advised, I can see:

It seems the error is linked to the NPE in batik. The strange thing is: the error is not seen on your Travis instance, while we can clearly see the error stacktraces in the Travis logs

This SVG is correctly rendered:

While these ones are not:

It seems the 10-year old version of batik does not handle well these parameters in xlink:href.

Environment

> java -version
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

> mvn -version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
Maven home: C:\opt\apache-maven-3.5.2\bin\..
Java version: 1.8.0_152, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_152\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Status

Assignee

Unassigned

Reporter

Vincent Privat

Triage

None

Components

Fix versions

Affects versions

19-beta

Priority

Medium
Configure