Opened 7 years ago
Closed 7 years ago
#15798 closed enhancement (fixed)
download gpx from HOT Tasking Manager 3 not possible
Reported by: | Athalis | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.03 |
Component: | Core | Version: | |
Keywords: | template_report hot tasking manager | Cc: |
Description
What steps will reproduce the problem?
- File -> Open Location... / CTRL + L
- enter URL copied from a task in HOT TM3: https://tasks.hotosm.org/api/v1/project/4019/tasks_as_gpx?tasks=125&as_file=true
- Download URL
What is the expected result?
The gpx should be loaded.
What happens instead?
An error message "Cannot open URL 'https://tasks.hotosm.org/api/v1/project/4019/tasks_as_gpx?tasks=125&as_file=true'" is shown, along the valid URL patterns.
Please provide any additional information below. Attach a screenshot if possible.
The download from an older TM version works. For example OSM-US still uses the Tasking Manager 2, and I can open this URL via the steps described under "What steps will reproduce the problem?": http://tasks.openstreetmap.us/project/128/task/125.gpx
I believe the URL from the Tasking Manager in version 2 matches the line EXTERNAL_GPX_FILE ("https?://.*/(.*\\.gpx)");
in https://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/io/OsmServerLocationReader.java#L64
As the URL layout has changed in version 3 it no longer matches. Therefore either the pattern needs to be updated here or the API of the HOT TM needs to be reverted to the old scheme.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-12-31 03:09:43 +0100 (Sun, 31 Dec 2017) Build-Date:2017-12-31 02:33:46 Revision:13265 Relative:URL: ^/trunk Identification: JOSM/1.5 (13265 en) Windows 10 64-Bit OS Build number: Windows 10 Enterprise 1703 (15063) Memory Usage: 247 MB / 247 MB (54 MB allocated, but free) Java version: 1.8.0_151-b12, Oracle Corporation, Java HotSpot(TM) Client VM Screen: \Display0 1920x1080 Maximum Screen Size: 1920x1080 VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-16a94364, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=49475, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe] Dataset consistency test: No problems found Plugins: + Mapillary (v1.5.9) + OpenStreetCam (114) + OpeningHoursEditor (33876) + apache-commons (33668) + apache-http (32699) + buildings_tools (33735) + continuosDownload (68) + fieldpapers (v0.4.3) + geojson (73) + markseen (7) + reverter (33865) + terracer (33839) + todo (30303) + undelete (33980) + utilsplugin2 (33991) Last errors/warnings: - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - E: Download Location - <html><p>Cannot open URL 'https://tasks.hotosm.org/api/v1/project/4019/tasks_as_gpx?tasks=125&as_file=true'<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></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?://.*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(.bz2)?)</li></ul></td></tr><tr><td>Download OSM Change:</td><td><ul><li>https?://.*/api/0.6/changeset/\p{Digit}+/download</li><li>https?://www\.(osm|openstreetmap)\.org/changeset/(\p{Digit}+).*</li><li>https?://.*/.*\.osc</li></ul></td></tr><tr><td>Download OSM URL:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/\?lat=.*&lon=.*</li><li>https?://www\.(osm|openstreetmap)\.org/(.*)?#map=\p{Digit}+/.*/.*</li><li>geo:(?<lat>[+-]?[0-9.]+),(?<lon>[+-]?[0-9.]+)(\?z=(?<zoom>[0-9]+))?</li></ul></td></tr><tr><td>Download OSM object by ID:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/(node|way|relation)/(\p{Digit}+).*</li></ul></td></tr><tr><td>Download Compressed OSM:</td><td><ul><li>https?://.*/.*\.osm.(gz|bz2?|zip)</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/.*\.osc.(gz|bz2?)</li></ul></td></tr><tr><td>Download session:</td><td><ul><li>https?://.*/.*\.jo(s|z)</li></ul></td></tr><tr><td>Download OSM Notes within Bounds:</td><td><ul><li>https?://www\.(osm|openstreetmap)\.org/(.*)?#map=\p{Digit}+/.*/.*&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></table></p></html>
Attachments (0)
Change History (3)
comment:1 by , 7 years ago
Keywords: | hot tasking manager added |
---|---|
Priority: | minor → normal |
Type: | defect → enhancement |
comment:2 by , 7 years ago
Milestone: | → 18.03 |
---|
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 13572/josm: