﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
18088	Splitting a restriction relation with multiple via-ways breaks restriction relation	westnordost	Don-vip	"If one attempts to split the **from** or **to** way in a restriction(-like) relation and the there are multiple consecutive **via**-ways, JOSM does not split up the restriction relation correctly.

The culprit is at [https://github.com/openstreetmap/josm/blob/master/src/org/openstreetmap/josm/command/SplitWayCommand.java#L425 SplitWayCommand line 425]

JOSM assumes there can only be one relation member with the role **via**. But according to [https://wiki.openstreetmap.org/wiki/Relation:restriction#Members the wiki], it can be one or several (consecutive) relation members that are ways.

(I checked both iD and Vespucci code, they both check for a list of relation members with a **via* role)"	defect	closed	normal	19.09	Core		fixed	relations restriction via split	
