﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10498	Remote Control applies tags incorrectly	alex73	team	"Remote Control applies tags incorrectly(i.e. breaks data) in some situation:

I'm trying to call remote control by /load_Object?...&addtags=... more than once from my html page using ajax(but not in parallel - I'm using synchronous mode):

http://127.0.0.1:8111/load_object?objects=n2753693557&addtags=name:be=test1
http://127.0.0.1:8111/load_object?objects=n2795746644&addtags=name:be=test2

If these requests executed without delay, then 'test2' value will be applied to n2753693557.

Looks like it happen because object loading executed asynchronously, but tag values applied synchronously in the LoadObjectHandler.java.

Also, if I load non-exist object, like http://127.0.0.1:8111/load_object?objects=r59195000&addtags=name:be=test, JOSM always returns ""OK"". It would be great if JOSM returns real status of project loading, i.e. 404 or ""ERROR"".

Probably, ""load_object"" should be changed for processing in the synchronous mode. It will allow to return real status of operation, and will allow to apply tags into specified object.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-08-31 21:55:55
Last Changed Author: Don-vip
Revision: 7480
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-08-31 23:51:24 +0200 (Sun, 31 Aug 2014)
Last Changed Rev: 7480

Identification: JOSM/1.5 (7480 en) Linux Ubuntu 14.04.1 LTS
Memory Usage: 207 MB / 1747 MB (67 MB allocated, but free)
Java version: 1.7.0_45, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.policy=file:/opt/jdk1.7.0_45/jre/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin, -Djnlpx.origFilenameArg=/home/alex/.java/deployment/cache/6.0/56/1ee8cfb8-250259f0, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=33604, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>/bin/java, -Djnlpx.vmargs=""-Djava.util.Arrays.useLegacyMergeSort=true -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp""]
Dataset consistency test: No problems found


Last errors/warnings:
- E: sun.awt.X11.XException: Cannot write XdndAware property
}}}
"	defect	closed	major	14.11	Core remotecontrol		fixed	template_report	
