Modify

Opened 5 months ago

Closed 5 months ago

Last modified 4 months ago

#23980 closed defect (fixed)

Broken WMTS query

Reported by: fjby7pbnd@… Owned by: team
Priority: normal Milestone: 24.11
Component: Core imagery Version:
Keywords: template_report Cc:

Description

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


Attachments (0)

Change History (5)

comment:1 by Penegal, 5 months ago

I also have this problem, and confirm that it comes from JOSM; the same WTMS server works fine under QGis.

comment:2 by skyper, 5 months ago

Component: CoreCore imagery

comment:3 by stoecker, 5 months ago

Resolution: fixed
Status: newclosed

In 19255/josm:

fix URL joining for WMTS when URL comes from capabilities and doesn't end in a separation, fix #23980

comment:4 by stoecker, 5 months ago

Milestone: 24.11

in reply to:  3 comment:5 by anonymous, 4 months ago

Thanks !!!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.