Modify

Opened 26 hours ago

Closed 25 hours ago

Last modified 25 hours ago

#24696 closed defect (fixed)

Allow "Open Location..." of new GPX "download" link

Reported by: zstadler Owned by: team
Priority: normal Milestone: 26.05
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

In a browsr:

  1. Open https://www.openstreetmap.org/user/CK@304HuK/traces/12284169
  2. Copy the "download" link (https://www.openstreetmap.org/traces/12284169/data)

In JOSM

  1. "File" -> "Open Location..."
  2. Paste the copied link
  3. Click "Download URL"

What is the expected result?

The trace should be added

What happens instead?

JOSM shows a "Cannot open URL'https://www.openstreetmap.org/traces/12284169/data'" error

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

While JOSM accepts

".*(osm|openstreetmap).org/trace/\\p{Digit}+/data"

it does not accept a URL with "traces" rather than "trace". The pattern should be updated to

".*(osm|openstreetmap).org/traces\?/\\p{Digit}+/data"
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2026-03-28 20:28:41 +0100 (Sat, 28 Mar 2026)
Revision:19555
Build-Date:2026-03-29 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19555 en) Windows 11 64-Bit
OS Build number: Windows 10 Pro 25H2 (26200)
Memory Usage: 554 MB / 4064 MB (127 MB allocated, but free)
Java version: 21.0.9+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920x1080x32bpp@144Hz (scaling 1.25×1.25)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djava.security.manager=allow]
Dataset consistency test: No problems found

Plugins:
+ DirectDownload (36474)
+ apache-commons (36474)
+ buildings_tools (36474)
+ continuosDownload (132)
+ mapwithai (839)
+ merge-overlap (36474)
+ patchExport (1.1.0)
+ pmtiles (36474)
+ reverter (36474)
+ utilsplugin2 (36474)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Potlatch2&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Last errors/warnings:
- 01000.552 W: java.io.IOException: Attribution is not loaded yet
- 01000.552 W: java.io.IOException: Attribution is not loaded yet
- 01000.553 W: java.io.IOException: Attribution is not loaded yet
- 01000.553 W: java.io.IOException: Attribution is not loaded yet
- 01000.553 W: java.io.IOException: Attribution is not loaded yet
- 01000.554 W: java.io.IOException: Attribution is not loaded yet
- 01000.554 W: java.io.IOException: Attribution is not loaded yet
- 01000.555 W: java.io.IOException: Attribution is not loaded yet
- 04280.838 E: Download Location - <html><p>Cannot open URL 'https://www.openstreetmap.org/traces/12284169/data'<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/trace/\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><tr><td>Add PMTiles layer:</td><td><ul><li>.*.pmtiles</li></ul></td></tr></table></p></html>
- 04317.734 E: Download Location - <html><p>Cannot open URL 'https://www.openstreetmap.org/traces/12284169/data'<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/trace/\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><tr><td>Add PMTiles layer:</td><td><ul><li>.*.pmtiles</li></ul></td></tr></table></p></html>

Attachments (1)

2026-04-09 10_03_45-Download Location.png (66.1 KB ) - added by zstadler 26 hours ago.
Screenshot of error message

Download all attachments as: .zip

Change History (4)

by zstadler, 26 hours ago

Screenshot of error message

comment:2 by stoecker, 25 hours ago

Resolution: fixed
Status: newclosed

In 19557/josm:

fix #24696 - allow 'trace(s)' in download URL

comment:3 by stoecker, 25 hours ago

Milestone: 26.05

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.