﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7116	API chokes when uploading undeleted ways/nodes with Precondition Failed	Polarbear-j	team	"- load a deleted way via the 'undelete' plugin

- upload the way

- depending on the order JOSM chooses for upload, if it tries to upload the way to be visible again before uploading the re-visible nodes, the API chokes with the following message (WWWWWWW and NNNNNN1 being real way/node numbers) :


{{{
PUT http://api.openstreetmap.org/api/0.6/way/WWWWWWW... Precondition Failed
Error header: Precondition failed: Way WWWWWWW requires the nodes with id in (NNNNNN1,NNNNNNN2), which either do not exist, or are not visible.

Warning: error header ""Precondition failed: Way WWWWWWW requires the nodes with id in (NNNNNN1,NNNNNNN2), which either do not exist, or are not visible."" did not match with an expected pattern
}}}

It does not matter if I upload in one single request or 'each object individually'.
"	defect	closed	major		Plugin undelete	latest	fixed	undelete precondition failed	dieterdreist rickmastfan67 ghia
