Opened 6 weeks ago

Last modified 3 weeks ago

#24149 closed defect

JOSM sends authentication info from one WMTS source into another — at Version 1

Reported by: ssundell Owned by: team
Priority: normal Milestone: 25.03
Component: Core Version:
Keywords: template_report authentication imagery Cc:

Description (last modified by gaben)

What steps will reproduce the problem?

  1. I have two WMTS sources that require (basic) authentication.
  2. I add a layer from source A. JOSM shows an authentication dialog with information I've filled previously and stored.
  3. I add the default layer from source B. JOSM shows an authentication dialog with empty fields since I have not stored authentication info for this source. I enter the username and password.

What is the expected result?

Layers from both sources A and B are retrieved and shown using their respective authentication details.

What happens instead?

When source B is selected, JOSM immediately launches a series of GET requests for the WMTS tiles, using authentication data for source A. The server responds with 401 and ends up blocking me altogether for trying to brute force my way in... :D

Please provide any additional information below. Attach a screenshot if possible.

I have a personal mapproxy to cushion bumps in imagery availability, and after getting blocked by an overeager firewall I noticed its logs has connection attempts from JOSM using a username from another, unrelated WMTS service.

This seems similar to #7086 except with two WMTS sources instead of OSM and WMS of the original ticket.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2025-02-03 20:59:54 +0100 (Mon, 03 Feb 2025)
Revision:19307
Build-Date:2025-02-04 02:30:32
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19307 en) Linux Mint 21.3
Memory Usage: 384 MB / 23808 MB (78 MB allocated, but free)
Java version: 21.0.6+7-Ubuntu-122.04.1, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080x[Multi depth]@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: X-Cinnamon
Java package: openjdk-21-jre:amd64-21.0.6+7-1~22.04.1
fonts-noto: fonts-noto:all-20201225-1build1
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, -Djava.net.useSystemProxies=true, -XX:MaxRAMPercentage=75.0, --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]
Dataset consistency test: No problems found

Plugins:
+ ImageIO (36379)
+ buildings_tools (36382)
+ utilsplugin2 (36379)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/iD&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface-DataEntry&zip=1

Last errors/warnings:
- 00031.302 W: No default layer selected, choosing first layer.
- 00050.469 W: No default layer selected, choosing first layer.
- 00101.173 W: java.net.SocketTimeoutException: Connect timed out
- 00101.173 W: java.net.SocketTimeoutException: Connect timed out
- 00412.497 W: No default layer selected, choosing first layer.

Change History (1)

comment:1 by gaben, 4 weeks ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.