Skip to content

Successful response on unsupported versions for GetCapabilities request #307

@jfbourgon

Description

@jfbourgon

Invoking WCS/WMS GetCapabilities requests on service endpoint with unsupported version will return a 200 OK response with a response content according to the single version supported which are respectively WMS 1.3.0 and WCS 1.1.1

For instance all the following WCS GetCapabilities request will return the same content with a successful code which could be misleading for client trying to determine which versions are actually supported and cause response parsing error since expected content may differ between versions.

The expected behavior would be that only the following request should be supported (200 OK)
https://datacube.services.geo.ca/ows/elevation?service=wcs&request=GetCapabilities
https://datacube.services.geo.ca/ows/elevation?service=wcs&request=GetCapabilities&version=1.1.1

and the remaining ones should raised a 400 BadRequest response with an Unsupported version error message
https://datacube.services.geo.ca/ows/elevation?service=wcs&request=GetCapabilities&version=1.0.0
https://datacube.services.geo.ca/ows/elevation?service=wcs&request=GetCapabilities&version=2.0.0
https://datacube.services.geo.ca/ows/elevation?service=wcs&request=GetCapabilities&version=foobar

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions