﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21816	Reproduction of #21811 bug.	anonymous	team	"==== What steps will reproduce the problem?
So Windows 10 PC (not laptop).
 https://josm.openstreetmap.de/wiki/Download  
select   josm-setup.exe  
I currently don't have a username or password set up - very important as the error doesn't occur if they do.  
Press Download button  
Make a change, I drew a building and set the tags  
Press the upload Button  Upload window opens  
Fill in boxes.  
Press 'Upload Changes'  
""Get an Access Token for 'https.....'"" window opens  
Type username and password, 'help' and 'me' respectively  
Press Authorise now  
window 'OAuth authorisation failed' opens  
Press Okay  On my PC this works perfectly, 
so I am baffled, the key difference is the use of a mouse on the PC and the Finger Pad thing under the keyboard on the Laptop. 
The only way to on the PC to get the same result is to ignore the Okay button and select the Get an Access Token window which isn't being locked. 
If I try selecting the Editor I get an alarm bell and it refuses to allow me to bring the window to the front.   
So the issue is simply lock the ""Get an Access Token for 'https.....'"" when the 'OAuth authorisation failed' window opens. 

==== What is the expected result?
The ""Get an Access Token for 'https.....'"" window shouldn't be able to be selected whilst the window 'OAuth authorisation failed' is open
==== What happens instead?

The ""Get an Access Token for 'https.....'"" window hides the 'OAuth authorisation failed' window.
==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:18360
Build-Date:2022-01-02 23:53:33

Identification: JOSM/1.5 (18360 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19043)
Memory Usage: 239 MB / 2036 MB (92 MB allocated, but free)
Java version: 17.0.1+12-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18360, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --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, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\HWConsole.exe]
Dataset consistency test: No problems found

Last errors/warnings:
- 00943.895 E: org.openstreetmap.josm.io.MissingOAuthAccessTokenException
- 00943.910 E: Authentication failed - <html>Failed to authenticate at the OSM server 'https://api.openstreetmap.org/api'.<br>You are using OAuth to authenticate but currently there is no<br>OAuth Access Token configured.<br>Please open the Preferences dialogue and generate or enter an Access Token.</html>
- 00963.224 E: org.openstreetmap.josm.gui.oauth.OsmOAuthAuthorizationException: Failed to authorise OAuth request  'DmK7607wGBREtgKKbg9liscqolLRBmoF7Qkbwp69'
- 00963.237 E: OAuth authorisation failed - <html>The automatic process for retrieving an OAuth Access Token<br>from the OSM server failed.<br><br>Please try again or choose another kind of authorisation process,<br>i.e. semi-automatic or manual authorisation.</html>
- 00967.858 E: org.openstreetmap.josm.gui.oauth.OsmOAuthAuthorizationException: Failed to authorise OAuth request  'IKHe1spWzZn6FXNc1RmzfzH30QXYFxPFs0u2rAhM'
- 00967.871 E: OAuth authorisation failed - <html>The automatic process for retrieving an OAuth Access Token<br>from the OSM server failed.<br><br>Please try again or choose another kind of authorisation process,<br>i.e. semi-automatic or manual authorisation.</html>
- 01287.827 E: org.openstreetmap.josm.gui.oauth.OsmOAuthAuthorizationException: Failed to authorise OAuth request  'hOL6tjpoCgQZvkEyuWqsdS0N25cHujsu9OfOrHuR'
- 01287.840 E: OAuth authorisation failed - <html>The automatic process for retrieving an OAuth Access Token<br>from the OSM server failed.<br><br>Please try again or choose another kind of authorisation process,<br>i.e. semi-automatic or manual authorisation.</html>
- 01785.018 E: org.openstreetmap.josm.io.MissingOAuthAccessTokenException
- 01785.031 E: Authentication failed - <html>Failed to authenticate at the OSM server 'https://api.openstreetmap.org/api'.<br>You are using OAuth to authenticate but currently there is no<br>OAuth Access Token configured.<br>Please open the Preferences dialogue and generate or enter an Access Token.</html>
}}}
"	defect	closed	normal		Core		duplicate	template_report	
