Modify ↓

Opened 25 hours ago

Closed 20 hours ago

Last modified 2 hours ago

#25144 closed defect (irreproducible)

Downloading XML Bounds does not work

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: template_report download xml bounds Cc:

Description

What steps will reproduce the problem?

  1. Open Location: https://josm.openstreetmap.de/maps

What is the expected result?

The xml file is downloaded and opened

What happens instead?

A long dialog about the accepted inputs (rather cryptic for users without knowledge of regex) including my use-case.

Please provide any additional information below. Attach a screenshot if possible.

Actually I was trying to download https://josm.openstreetmap.de/wiki/Maps/Germany Cities with the patched debian version of r19678 but that does not work, either.

By the way, a white space is not allowed in CamelCase and makes my actual try more complicated.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2026-11-27 22:58:52 +0100 (Fri, 27 Nov 2026)
Revision:19713
Build-Date:2026-11-28 02:32:45
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19713 en) Linux Debian GNU/Linux 13 (trixie)
Memory Usage: 376 MB / 11912 MB (107 MB allocated, but free)
Java version: 25.0.5.1+2-1-deb13u1-Debian, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080x[Multi depth]@60Hz (scaling 1.00×1.00) :0.1 1920x1080x[Multi depth]@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME
Java package: openjdk-25-jre:amd64-25.0.5.1+2-1~deb13u1
Java ATK Wrapper package: libatk-wrapper-java:all-0.44.0-1~bpo13+1
libcommons-logging-java: libcommons-logging-java:all-1.3.0-2
fonts-noto: fonts-noto:all-20201225-2
VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true, -XX:MaxRAMPercentage=75.0, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED]

Last errors/warnings:
- 00001.107 W: Missing plugin main version in plugin mapwithai
- 00001.726 W: Missing plugin main version in plugin mapwithai
- 00027.163 E: Download Location - <html><p>Cannot open URL 'https://josm.openstreetmap.de/wiki/Maps/Germany%20Cities'<br>The following download tasks accept the URL patterns shown:<br><table><tr><td>Download OSM:</td><td><ul><li>https?://.*/api/0.6/(map|nodes?|ways?|relations?|\*).*</li><li>https?://.*/interpreter\?data=.*</li><li>https?://.*/xapi(?:\?.*\[@meta\]|_meta\?)(.*)</li><li>https?://.*/(.*\.osm)</li><li>https?://.*/(.*\.osm\.(gz|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download GPS:</td><td><ul><li>https?://.*(osm|openstreetmap).org/traces?/\p{Digit}+/data</li><li>https?://.*(osm|openstreetmap).org/user/[^/]+/traces/(\p{Digit}+)</li><li>https?://.*(osm|openstreetmap).org/edit/?\?gpx=(\p{Digit}+)(#.*)?</li><li>https?://.*/api/0.6/trackpoints\?bbox=.*,.*,.*,.*</li><li>https?://.*/api/v\p{Digit}+/projects?/\p{Digit}+/(tasks_as_gpx?.*|tasks/queries/gpx/\?tasks=.*)</li><li>https?://.*exportgpx.*</li><li>https?://.*/(.*\.gpx)</li></ul></td></tr><tr><td>Download OSM Notes:</td><td><ul><li>https?://.*/api/0.6/notes.*</li><li>https?://.*/(.*\.osn(\.(gz|xz|bz2?|zip))?)</li></ul></td></tr><tr><td>Download OSM Change:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/changeset/(\p{Digit}+).*</li><li>https?://.*/api/0.6/changeset/\p{Digit}+/download</li><li>https?://.*/(.*\.osc)</li><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download OSM URL:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/\?lat=.*&amp;lon=.*</li><li>https?://www\.(osm|openstreetmap)\.org/(.*)?#map=\p{Digit}+/.*/.*</li><li>geo:(?&lt;lat&gt;[+-]?[0-9.]+),(?&lt;lon&gt;[+-]?[0-9.]+)(?&lt;crs&gt;;crs=wgs84)?(?&lt;uncertainty&gt;;u=[0-9.]+)?(\?z=(?&lt;zoom&gt;[0-9]+))?</li></ul></td></tr><tr><td>Download OSM object by ID:</td><td><ul><li>https?://(?:www\.)?(osm|openstreetmap)\.org/(?:browse/)?(node|way|relation)/(\p{Digit}+).*</li></ul></td></tr><tr><td>Download session:</td><td><ul><li>https?://.*/.*\.jo([sz])</li></ul></td></tr><tr><td>Download OSM Notes within Bounds:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/(.*)?#map=\p{Digit}+/.*/.*&amp;layers=[A-MO-Z]*N[A-MO-Z]*</li></ul></td></tr><tr><td>Download OSM Note by ID:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/note/(\p{Digit}+).*</li></ul></td></tr><tr><td>Download GeoJSON:</td><td><ul><li>https?://.*/(.*\.(json|geojson)(\.(gz|xz|bz2?|zip))?)</li><li>https?://.*f(ormat)?=geojson.*</li></ul></td></tr></table></p></html>
- 00054.529 E: Download Location - <html><p>Cannot open URL 'https://josm.openstreetmap.de/wiki/maps'<br>The following download tasks accept the URL patterns shown:<br><table><tr><td>Download OSM:</td><td><ul><li>https?://.*/api/0.6/(map|nodes?|ways?|relations?|\*).*</li><li>https?://.*/interpreter\?data=.*</li><li>https?://.*/xapi(?:\?.*\[@meta\]|_meta\?)(.*)</li><li>https?://.*/(.*\.osm)</li><li>https?://.*/(.*\.osm\.(gz|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download GPS:</td><td><ul><li>https?://.*(osm|openstreetmap).org/traces?/\p{Digit}+/data</li><li>https?://.*(osm|openstreetmap).org/user/[^/]+/traces/(\p{Digit}+)</li><li>https?://.*(osm|openstreetmap).org/edit/?\?gpx=(\p{Digit}+)(#.*)?</li><li>https?://.*/api/0.6/trackpoints\?bbox=.*,.*,.*,.*</li><li>https?://.*/api/v\p{Digit}+/projects?/\p{Digit}+/(tasks_as_gpx?.*|tasks/queries/gpx/\?tasks=.*)</li><li>https?://.*exportgpx.*</li><li>https?://.*/(.*\.gpx)</li></ul></td></tr><tr><td>Download OSM Notes:</td><td><ul><li>https?://.*/api/0.6/notes.*</li><li>https?://.*/(.*\.osn(\.(gz|xz|bz2?|zip))?)</li></ul></td></tr><tr><td>Download OSM Change:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/changeset/(\p{Digit}+).*</li><li>https?://.*/api/0.6/changeset/\p{Digit}+/download</li><li>https?://.*/(.*\.osc)</li><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download OSM URL:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/\?lat=.*&amp;lon=.*</li><li>https?://www\.(osm|openstreetmap)\.org/(.*)?#map=\p{Digit}+/.*/.*</li><li>geo:(?&lt;lat&gt;[+-]?[0-9.]+),(?&lt;lon&gt;[+-]?[0-9.]+)(?&lt;crs&gt;;crs=wgs84)?(?&lt;uncertainty&gt;;u=[0-9.]+)?(\?z=(?&lt;zoom&gt;[0-9]+))?</li></ul></td></tr><tr><td>Download OSM object by ID:</td><td><ul><li>https?://(?:www\.)?(osm|openstreetmap)\.org/(?:browse/)?(node|way|relation)/(\p{Digit}+).*</li></ul></td></tr><tr><td>Download session:</td><td><ul><li>https?://.*/.*\.jo([sz])</li></ul></td></tr><tr><td>Download OSM Notes within Bounds:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/(.*)?#map=\p{Digit}+/.*/.*&amp;layers=[A-MO-Z]*N[A-MO-Z]*</li></ul></td></tr><tr><td>Download OSM Note by ID:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/note/(\p{Digit}+).*</li></ul></td></tr><tr><td>Download GeoJSON:</td><td><ul><li>https?://.*/(.*\.(json|geojson)(\.(gz|xz|bz2?|zip))?)</li><li>https?://.*f(ormat)?=geojson.*</li></ul></td></tr></table></p></html>

Attachments (0)

Change History (9)

comment:1 by stoecker, 23 hours ago

Why do you expect that "Open Location" can open the maps list?

comment:2 by skyper, 22 hours ago

  • It is mentioned on the last lines of the error message.
  • It is described on the wiki page of the imagery-xml-bounds plugin under ​import.

comment:3 by skyper, 22 hours ago

Well, the complete list https://josm.openstreetmap.de/wiki/maps with a small letter m does work, now. I am not sure if anything else like subpages did ever work.

@stoecker: Did you change anything or was it my quirky internet connection?

comment:4 by stoecker, 20 hours ago

Resolution: → irreproducible
Status: new → closed

Sub pages can't work. There is no XML export for these.

Maybe it was a temporary issue due to the JOSM server overload. In the last days the website scrapers are going amok again (more than usually).

in reply to:  4 comment:5 by skyper, 19 hours ago

Replying to stoecker:

Sub pages can't work. There is no XML export for these.

Actually, this would be a nice feature, at least in combination with the imagery-xml-bounds plugin usually one or a few subpages is enough.

comment:6 by stoecker, 17 hours ago

I added another feature which was much easier to implement. Add "?id=...id..." and you only get one entry.

comment:7 by skyper, 3 hours ago

Nice, one more hidden feature.
I thought it would be similar to the external rules, presets and styles where at the bottom of the page an extract of the "code block" is available as file.

I am a Newbie editing Maps and its subpages. In the end, I copied the complete "code block" from Maps/Germany Cities into a file. After all it was not a bad idea to work on the page locally and copy it back once all was done. Opening the local file as layer worked flawlessly. Unfortunately, I did not find a way to add an .imagery.xml file for local testing in the imagery preference dialog but that is another story.

in reply to:  7 ; comment:8 by stoecker, 3 hours ago

Replying to skyper:

I thought it would be similar to the external rules, presets and styles where at the bottom of the page an extract of the "code block" is available as file.

Well, that's a macro written for that purpose. I'd need to make a completely new macro for the export and that's too much work :-)

Unfortunately, I did not find a way to add an .imagery.xml file for local testing in the imagery preference dialog but that is another story.

The Java syntax is a bit strange. I think it is file:///...full path...

in reply to:  8 comment:9 by skyper, 2 hours ago

Replying to stoecker:

Replying to skyper:

Unfortunately, I did not find a way to add an .imagery.xml file for local testing in the imagery preference dialog but that is another story.

The Java syntax is a bit strange. I think it is file:///...full path...

Wow, nice, that worked adding it to imagery.layers.sites. Thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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