﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21189	Wrong number of objects in upload dialog and no option to upload only some deleted objects.	skyper	team	"==== What steps will reproduce the problem?
1. Have some nodes with parent ways (inside download area)
1. Delete the nodes
1. Search `type:node modified` with ""all objects"" enabled
1. Select only one node out of the list
1. Upload selection

==== What is the expected result?
1. Only the singled node is uploaded
1. The correct number of all deleted nodes is displayed in upload dialog

==== What happens instead?
1. No option but to upload all deleted objects
1. In upload dialog only the single node is displayed but all additional objects are missing

==== Please provide any additional information below. Attach a screenshot if possible.
Additionally, the parent ways should have been added to the list of objects to upload as the API will not allow to delete a node without changing its parent objects.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-08-02 02:41:28 +0200 (Mon, 02 Aug 2021)
Revision:18114
Build-Date:2021-08-02 01:31:32
URL:https://josm.openstreetmap.de/svn/trunk

Last errors/warnings:
- 07040.496 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Node 807734013 is still used by ways 24402957,110804645.>
- 07040.505 E: Object still in use - <html><strong>Failed</strong> to delete <strong>node 807734013</strong>. It is still referred to by ways [24402957, 110804645].<br>Please load the ways, remove the reference to the node, and upload again.<br><br>Click <strong>Prepare conflict resolution</strong> to load them now.<br>If necessary JOSM will create conflicts which you can resolve in the Conflict Resolution Dialog.</html>
- 07076.851 W: java.net.SocketTimeoutException: Read timed out
- 07076.852 E: java.net.SocketTimeoutException: Read timed out
- 07076.853 E: java.util.concurrent.ExecutionException: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketTimeoutException: Read timed out
- 07076.853 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketTimeoutException: Read timed out
- 07076.853 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketTimeoutException: Read timed out
- 07180.329 E: Error header: Precondition failed: Node 807734013 is still used by ways 24402957,110804645.
- 07180.440 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Node 807734013 is still used by ways 24402957,110804645.>
- 07180.447 E: Object still in use - <html><strong>Failed</strong> to delete <strong>node 807734013</strong>. It is still referred to by ways [24402957, 110804645].<br>Please load the ways, remove the reference to the node, and upload again.<br><br>Click <strong>Prepare conflict resolution</strong> to load them now.<br>If necessary JOSM will create conflicts which you can resolve in the Conflict Resolution Dialog.</html>
}}}
"	defect	new	major		Core	latest		template_report upload selection deleted objects	
