﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17158	"""building tool"" plugin produces error when create a build over a node with ""addr:housenumber"" tag and member of relation"	oleksii.zagorskyi@…	Upliner	"==== What steps will reproduce the problem?
Have a node with ""addr:housenumber=16"" tag which is a member of a relation (assotiatedStreet), use ""building tool"" to draw a build over the node.
The existing node being merged with the new build, preserving ""addr:housenumber=16"" to the new build.


==== What is the expected result?
It should work without errors in plugin.


==== What happens instead?
When you do 2nd click to create the new build - an error happens in the ""building tool"" plugin.
If ignore the error and continue (which is bad, I know), the build is created, but it's not a member of the relation and data is actually broken.

==== Please provide any additional information below. Attach a screenshot if possible.

NOTE: if draw a build not over the node, but on a side, then move the node over the build and use ""Data -> Merge address point"" menu - it works great, but it's complicated.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-11-28 01:09:01 +0100 (Wed, 28 Nov 2018)
Build-Date:2018-11-28 00:26:41
Revision:14460
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14460 en) Linux Ubuntu 18.04.1 LTS
Memory Usage: 714 MB / 910 MB (115 MB allocated, but free)
Java version: 1.8.0_121-b13, Oracle Corporation, Java HotSpot(TM) Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080

Dataset consistency test:
[NO DATASET] {Way id=-157355 version=0 VT nodes=[{Node id=-157351 version=0 V lat=50.36605247966937,lon=30.41936695307493}, {Node id=-157354 version=0 V lat=50.36605068553871,lon=30.41953852437232}, {Node id=-157353 version=0 V lat=50.36594631877727,lon=30.41953584216331}, {Node id=-157352 version=0 V lat=50.36594811291188,lon=30.419364270865916}, {Node id=-157351 version=0 V lat=50.36605247966937,lon=30.41936695307493}]} is referenced by {Relation id=6796038 version=3 VT [node 4784243388, way 460398654, node 4784243387, node 4784243383, way 459892042, way 460398678, node 4784243384, node 4784243386, way 460398711, node 4784243385, way 460398714, way 460398653, node 4784243381, way 460398682, node 4784243380, way 460398683, node 4784243379, way 460398656, way 460398720, way 460398685, way -157355, way 460398686, way 170077933]} but not found in dataset


Plugins:
+ BuildingGeneralization (23)
+ DirectDownload (34593)
+ DirectUpload (34502)
+ ElevationProfile (34746)
+ FixAddresses (34511)
+ HouseNumberTaggingTool (34517)
+ ImageWayPoint (34206)
+ InfoMode (34755)
+ PicLayer (34544)
+ ShapeTools (1240)
+ alignways (34489)
+ buildings_tools (34724)
+ editgpx (34751)
+ gpxfilter (34506)
+ imagery_offset_db (34641)
+ log4j (34527)
+ measurement (34529)
+ namemanager (34532)
+ openvisible (34536)
+ poly (34546)
+ reltoolbox (34788)
+ reverter (34552)
+ tageditor (34560)
+ todo (30306)
+ turnrestrictions (34643)
+ undelete (34568)
+ utilsplugin2 (34506)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/UA.zip

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
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Relation member must be part of the same dataset as relation(relation 6796038, way -155903)
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Relation member must be part of the same dataset as relation(relation 6796038, way -157355)
}}}
"	defect	closed	normal		Plugin buildings_tools	latest	fixed	template_report	
