![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Jody Garnett
|
|
Components:
|
wms extension |
|
Created:
|
10/Sep/12 5:29 AM
|
|
Description:
|
WMS1_1_1 overrides and sets VERSION to "1.1.1" only for createGetCapabilitiesRequest(), createGetMapRequest() and createGetFeatureInfoRequest().
Other methods in WMS1_1_0, among which createDescribeLayerRequest() are not overridden which means that these are performed with the VERSION parameter set to "1.1.0".
This breaks GeoServer DescribeLayer which throws an error:
<ServiceException code="InvalidVersion" locator="DescribeLayerKvpRequestReader">
Wrong value for version parameter: 1.1.0. This server accetps version 1.1.1
</ServiceException>
Code example / OnlineTest code:
WebMapServer wms = new WebMapServer(new URL("http:)) {
protected void setupSpecifications() {
specs = new Specification[] {
new WMS1_1_1() };
}
};
System.out.println("Capabilities version: " + wms.getCapabilities().getVersion());
DescribeLayerRequest dlr = wms.createDescribeLayerRequest();
dlr.setLayers("tiger:giant_polygon");
System.out.println("DescribeLayer URL: " + dlr.getFinalURL());
System.out.println(wms.issueRequest(dlr).getLayerDescs());
Output:
(also the the error handling for DescribeLayer is not very useful).
Workaround is to add the following before calling issueRequest():
dlr.setProperty("VERSION", wms.getCapabilities().getVersion());
A fix would be to override all the WMS1_1_0 methods for all requests, or maybe use the getVersion() virtual method call to set the VERSION so overriding is not necessary if only the version parameter is different. This would be a lot less code.
|
|
Project:
|
GeoTools
|
|
Priority:
|
Minor
|
|
Reporter:
|
Matthijs Laan
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel