Modify

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 ( 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).

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 ImageProvider.java 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
Action
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.