﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7871	Authentication error closing a changeset	skyper	team	"Just had a similar issue then #5783.

1. Edit a lot (all simple edits mostly adds)
1. Sucessfully upload (with closing changeset set)
1. changed tag of two object I had just created.
1. try to upload through ""unsaved layer dialog""
1. -> failed due to rejection of OAuth token.

First of all upload worked only closing the changeset failed (wrong error message).[[BR]]
Restarting JOSM my token work again.

This is from the console:
{{{
Using /usr/lib/jvm/java-6-openjdk-amd64/bin/java to execute josm.
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-07-16 01:31:09
Last Changed Author: Don-vip
Revision: 5345
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-07-15 16:34:27 +0200 (Sun, 15 Jul 2012)
Last Changed Rev: 5345

loading plugin 'restart' (version 28438)
loading plugin 'PicLayer' (version 27883)
loading plugin 'mirrored_download' (version 28418)
loading plugin 'utilsplugin2' (version 28412)
loading plugin 'conflation' (version 0.1.6)
loading plugin 'jts' (version 28415)

POST http://api.openstreetmap.org/api/0.6/changeset/12274272/upload... OK
PUT http://api.openstreetmap.org/api/0.6/changeset/12274272/close... Authorization Required
Error body: Couldn't authenticate you

org.openstreetmap.josm.io.OsmApiException: ResponseCode=401, Error Body=<Couldnt authenticate you>
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:661)
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:534)
	at org.openstreetmap.josm.io.OsmApi.closeChangeset(OsmApi.java:448)
	at org.openstreetmap.josm.gui.io.UploadLayerTask.run(UploadLayerTask.java:135)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)
org.openstreetmap.josm.io.OsmApiException: ResponseCode=401, Error Body=<Couldnt authenticate you>
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:661)
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:534)
	at org.openstreetmap.josm.io.OsmApi.closeChangeset(OsmApi.java:448)
	at org.openstreetmap.josm.gui.io.UploadLayerTask.run(UploadLayerTask.java:135)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)
}}}

"	defect	closed	normal		Core	latest	duplicate		
