Opened 10 days ago

Closed 9 days ago

Last modified 9 days 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 ( ) to demonstrate the problem.

For whatever reason, plugins cannot find the svg files (see for a real world example).

Attachments (0)

Change History (6)

comment:1 Changed 10 days ago by taylor.smock

Description: modified (diff)

comment:2 Changed 10 days ago by taylor.smock

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 line 1289 (u = getImageUrl("resource://images/", imageName);). I'll continue debugging later.

Last edited 10 days ago by taylor.smock (previous) (diff)

comment:3 Changed 10 days ago by Don-vip

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

comment:4 Changed 9 days ago by Don-vip

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 Changed 9 days ago by Don-vip

Resolution: invalidfixed

comment:6 Changed 9 days ago by Don-vip

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Rub21.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.