Just looking to see how GeoServer responds to a WCS 2.0 request with the optional acceptlanguages parameter.
Background: the AcceptLanguages parameter is defined by OWS common (OGC 06-121r9) version 2, and it is the GetCapabilities operation (Clause 7) of this version of OWS common that WCS 2.0 should conform to.
My request is of the form:
http://[myserver]/geoserver/OneGDev/wcs?service=WCS&request=GetCapabilities&AcceptLanguages=*&
I think GeoServer doesn't yet have language support for any OGC service so I was expecting the AcceptLanguages=*& (parameter=value&) to be ignored and a default GetCapabilities response to be returned (actually it's not a good test, because the * also allows the server to return a response in a language of its choice), but in any case I got an error:
<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema\-instance" version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="InvalidParameterValue" locator="ACCEPTLANGUAGES">
<ows:ExceptionText>
Failed to set property ACCEPTLANGUAGES in request object using value * of type class java.lang.String java.lang.String cannot be cast to net.opengis.ows20.AcceptLanguagesType
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
This response then looks like GeoServer is trying to parse the parameter somehow and fails, is this a bug? Does it mean that there is some work going on to somehow include the AcceptLanguages parameter??
Incidentally I tried another request without the acceptlanguages parameter but using a made up Christmas=close& parameter and this time the request responded as I would expected, it ignored the Christmas parameter and gave a standard
________________________________
This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________