Modify ↓
#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 )
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 by , 6 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 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 , 6 years ago
| Component: | Plugin → Plugin osm-obj-info |
|---|---|
| Owner: | changed from to |
| Resolution: | → invalid |
| Status: | new → closed |
This has nothing to do with JOSM. The SVG is completely invalid, the contents are duplicated in the file.
comment:5 by , 6 years ago
| Resolution: | invalid → fixed |
|---|
comment:6 by , 6 years ago
| Keywords: | yandex svg added |
|---|---|
| Summary: | Plugins cannot load svg images → Bad SVG Yandex file |
Note:
See TracTickets
for help on using tickets.



It is trying to load
~/.josm/plugins/svg_png_test_plugin.jar!/images/dialogs/test.svg(message isError 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.javaline 1289 (u = getImageUrl("resource://images/", imageName);). I'll continue debugging later.