WCS 1.1 capabilities request should ignore the "version" parameter
------------------------------------------------------------------

                 Key: GEOS-4229
                 URL: http://jira.codehaus.org/browse/GEOS-4229
             Project: GeoServer
          Issue Type: Bug
          Components: WCS
    Affects Versions: 2.1-beta1
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.1-beta2


The following request:

http://localhost:8080/geoserver/ows?service=wcs&request=GetCapabilities&version=9.9.9

today returns a service exception stating the version is not supported. However 
that response is wrong no matter from which angle one looks at it:
- if we use the WCS 1.0 negotiation rules, for which version=xyz parameter has 
a meaning, the rule says "If a version unknown to the server is requested, the 
server must send the highest version it knows that is less than the requested 
version.". So the WCS 1.1 capabilities should be returned
- if we use the WCS 1.1 negotation rules, the version parameter is not part of 
the spec, so it should simply be ignored, and again the WCS 1.1 capabilities 
should be returned

The problem is due to the 1.1 caps kvp reader assimilating "version" to 
"acceptVersions", an assumption which is not warranted.

The attached patch solves the problem. Tried out the WCS 1.1 CITE tests with 
this patch, they pass

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to