Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#18125 closed defect (fixed)

Bad SVG Yandex file

Reported by: taylor.smock Owned by: Rub21
Priority: normal Milestone:
Component: Plugin osm-obj-info Version:
Keywords: yandex svg Cc:

Description (last modified by taylor.smock)

I built a minimal plugin over here ( https://gitlab.com/smocktaylor/josm_svg_png_test ) to demonstrate the problem.

For whatever reason, plugins cannot find the svg files (see https://github.com/JOSM/osm-obj-info/pull/10 for a real world example).

Change History (6)

comment:1 by taylor.smock, 6 years ago

Description: modified (diff)

comment:2 by taylor.smock, 6 years ago

It is trying to load ~/.josm/plugins/svg_png_test_plugin.jar!/images/dialogs/test.svg (message is Error processing jar:file:/home/USERNAME/.josm/plugins/svg_png_test_plugin.jar!/images/dialogs/test.svg (replace ~ with your home directory on Linux).

The .png's don't seem to hit the same code path, but I don't know why there would be a ! in the path.

It seems to be hitting ImageProvider.java line 1289 (u = getImageUrl("resource://images/", imageName);). I'll continue debugging later.

Last edited 6 years ago by taylor.smock (previous) (diff)

comment:3 by Don-vip, 6 years ago

! is the standard way of Java to build an URL for a file inside a JAR. Nothing suspicious here.

comment:4 by Don-vip, 6 years ago

Component: PluginPlugin osm-obj-info
Owner: changed from team to Rub21
Resolution: invalid
Status: newclosed

This has nothing to do with JOSM. The SVG is completely invalid, the contents are duplicated in the file.

comment:5 by Don-vip, 6 years ago

Resolution: invalidfixed

comment:6 by Don-vip, 6 years ago

Keywords: yandex svg added
Summary: Plugins cannot load svg imagesBad SVG Yandex file

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.