Andrew Wils created BATIK-1217: ---------------------------------- Summary: short url() references break when SVG files are inside a JAR file Key: BATIK-1217 URL: https://issues.apache.org/jira/browse/BATIK-1217 Project: Batik Issue Type: Bug Components: Utilities Reporter: Andrew Wils
When parsing an SVG file inside a JAR, ParsedURLDefaultProtocolHandler gets called for url references. Its first statement is this: {code:java} String start = urlStr.substring(0, JAR.length()+1).toLowerCase();{code} if the urlStr is very short (e.g. "#s"), this triggers an AIOOBE. To reproduce, create a gradient that has a single-character id and use it elsewhere: {code:java} <linearGradient id="v" ...> ... </linearGradient> ... <circle ... fill="url(#v)" ... />{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org