Good Morning Group,

 

I'm still very much a rookie with GeoServer and I've been trying to follow
the steps to cascade WMTS requests to the UK Met Office Datapoint service.
The service description is here:

 

https://www.metoffice.gov.uk/datapoint/support/documentation/inspire-layers-
detailed-documentation

 

I have hit a snag but I think that I know what the problem is. What I don't
know is what I can do about it.

 

If I put the GetCapabilities request into a browser (with the correct API
key, of course), I get a valid XML response. The form of the request is like
this:

 

http://datapoint.metoffice.gov.uk/public/data/inspire/view/wmts?REQUEST=getc
apabilities&key=<API key>

 

When I paste that URL into Geoserver I get a "forbidden" error. Looking in
the linux command window where I launched the GeoServer, I see the error and
the URL that was sent to DataPoint. It is not the same as the one that I
pasted into the configuration page and the "key" parameter has been
capitalised  - like this:

 

http://datapoint.metoffice.gov.uk/public/data/inspire/view/wmts?REQUEST=getc
apabilities&KEY=<API key>

 

If I then copy that URL from the command window and paste it into the
browser, it fails with the same "forbidden" error. Changing "KEY" to "key"
cures the problem in the browser.

 

So it looks like GeoServer is parsing the entered URL, reforming it and
sending it out to the remote server - except that it has capitalised a
parameter name, which breaks it.

 

Can anyone offer any suggestions? Is this a candidate for a bug report?

 

Many Thanks

 

David

 

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to