﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
23980	Broken WMTS query	fjby7pbnd@…	team	"==== What steps will reproduce the problem?
1. In Imagery > Imagery preferences : add the URL for french WMTS imagery : https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetCapabilities&VERSION=1.0.0
2. Add the created service from the Imagery menu
3. Chose a layer among all the layers available
4. Click ""Add layers""


==== What is the expected result?

Imagery layer displays

==== What happens instead?

HTTP 400 errors

==== additional information

The log shows that the requested URL is missing a **?** before the query parameters :


{{{
GET https://data.geopf.fr/wmtsSERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER= ...
}}}

should be :


{{{
GET https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER= ...
}}}

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-10-01 13:50:10 +0200 (Tue, 01 Oct 2024)
Revision:19230
Build-Date:2024-10-02 01:30:34
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19230 fr) Linux Mint 21.3
Memory Usage: 1340 MB / 16004 MB (605 MB allocated, but free)
Java version: 11.0.24+8-post-Ubuntu-1ubuntu322.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 1920x1080x[Multi depth]@144Hz (scaling 1.00×1.00) :0.1 1920x1200x[Multi depth]@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: fr_FR.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: fr_FR
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: X-Cinnamon
Java package: openjdk-11-jre:amd64-11.0.24+8-1ubuntu3~22.04
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:-
Dataset consistency test: No problems found

Plugins:
+ ImportImagePlugin (36184)
+ ShapeTools (1250)
+ apache-commons (36282)
+ buildings_tools (36344)
+ cadastre-fr (36344)
+ ejml (36176)
+ geotools (36273)
+ jackson (36273)
+ jaxb (36118)
+ jts (36004)
+ reverter (36343)
+ undelete (36298)
+ utilsplugin2 (36344)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/sac_scale&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&zip=1


}}}
"	defect	closed	normal	24.11	Core imagery		fixed	template_report	
