﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
23070	Remote Control / Authorization | HTTP Error 400: Bad Request - Unknown state for authorization	donal.hunt@…	team	"==== What steps will reproduce the problem?
1. Open preferences
2. Go to ""OSM Server""
3. Click ""Authorize now (semi-automatic)
4. authenticate on OSM website.
5. get redirected to http://127.0.0.1:8111/oauth_authorization?code=<REDACTED>&state=<REDACTED>
6. josm reports ""HTTP Error 400: Bad Request - Unknown state for authorization""

==== What is the expected result?

authentication setup works.

==== What happens instead?

HTTP error received.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-07-10 22:19:01 +0200 (Mon, 10 Jul 2023)
Revision:18776
Build-Date:2023-07-11 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18776 en) Linux Debian GNU/Linux 12 (bookworm)
Memory Usage: 556 MB / 3940 MB (123 MB allocated, but free)
Java version: 17.0.6+10-Debian-1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00) :0.1 2560×1440 (scaling 1.00×1.00) :0.2 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_IE.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_IE
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME
Java package: openjdk-17-jre:amd64-17.0.6+10-1
Java ATK Wrapper package: libatk-wrapper-java:all-0.40.0-3
libcommons-compress-java: libcommons-compress-java:all-1.22-1
fonts-noto: fonts-noto:all-20201225-1
VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED]

Last errors/warnings:
- 00010.117 W: Cannot start IPv4 remotecontrol server on port 8111: Address already in use
- 00010.130 W: Cannot start IPv6 remotecontrol server on port 8111: Address already in use
}}}
"	defect	closed	normal		Core		invalid	template_report	
