What steps will reproduce the problem?
- Run validation on the attached OSM file (A multipolygon relation with two outer members, no inner members and one of the outers is a tiny two node way that doubles back on itself.)
- Note that the tiny, two-node way doesn't get flagged as being incorrect.
-
What is the expected result?
- Some sort of warning that a way overlaps or intersects with itself.
What happens instead?
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-11-20 02:07:07 +0100 (Tue, 20 Nov 2018)
Revision:14436
Build-Date:2018-11-20 02:32:55
URL:https://josm.openstreetmap.de/svn/trunk
Identification: JOSM/1.5 (14436 en) Linux Ubuntu 18.04.1 LTS
Memory Usage: 758 MB / 3990 MB (259 MB allocated, but free)
Java version: 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-11-jre:amd64-10.0.2+13-1ubuntu0.18.04.3
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1
VM arguments: [-Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found
Plugins:
+ FixAddresses (34511)
+ reverter (34552)
+ tageditor (34560)
+ turnlanes-tagging (272)
+ turnrestrictions (34643)
+ undelete (34568)
Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Disc_Golf_Course&zip=1
Last errors/warnings:
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
- W: java.net.SocketException: Unexpected end of file from server
- E: org.openstreetmap.josm.io.OsmTransferException: java.net.SocketException: Unexpected end of file from server. Cause: java.net.SocketException: Unexpected end of file from server
- E: Network exception - org.openstreetmap.josm.gui.widgets.HtmlPanel[,0,0,0x0,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
- E: Download Location - <html><p>Cannot open URL ''<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?://.*/api/v\p{Digit}+/project/\p{Digit}+/tasks_as_gpx?.*</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?://.*/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|xz|bz2?|zip))</li></ul></td></tr><tr><td>Download Compressed OSM Change:</td><td><ul><li>https?://.*/(.*\.osc.(gz|xz|bz2?|zip))</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>
I think the problem is in the "Overlapping ways" test. It tolerates ways which have just one overlapping segment.
The code works like that since r6722, so I wonder if there is a good reason for that?
With the attached patch all ways with overlapping segments are reported.