KVP parser uses Filter 1.0 parser configuration instead of 1.1
--------------------------------------------------------------

                 Key: GEOS-2028
                 URL: http://jira.codehaus.org/browse/GEOS-2028
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.6.4
            Reporter: Gabriel Roldán
            Assignee: Andrea Aime
             Fix For: 1.6.5


If GeoServer supports WFS 1.1 then it should support the filters used in a 
GetFeature request to be 1.1 filters, not only 1.0 ones.
Yet, the {{FilterKvpParser}} uses the 
{{org.geotools.filter.v1_0.OGCConfiguration}} configuration for the parser, 
failing with filters encoded in 1.1.

[Sample 
request|http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=topp:states&PROPERTYNAME=the_geom&SRSNAME=EPSG:4326&filter=<ogc:Filter
 xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml";><ogc:Intersects><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>-112.6881725003984
 46.21546542390438 -109.77324582151394 46.21546542390438 -109.77324582151394 
47.59622016653386 -112.6881725003984 47.59622016653386 -112.6881725003984 
46.21546542390438</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></ogc:Intersects></ogc:Filter>]

Produces the following exception:
{code}
org.xml.sax.SAXException: Attempted to construct illegal filter - I dont 
understand the tag: gml:exterior.  HINT: tags are case-sensitive!
Attempted to construct illegal filter - I dont understand the tag: 
gml:exterior.  HINT: tags are case-sensitive!
{code}

Simply changing the configuration to 
{{org.geotools.filter.v1_1.OGCConfiguration}} fixes the issue for this 
particular case, though I'm not sure if it'll work for all cases.
May be when the request is a 1.0 one we should use the 1.0 parser and when the 
request version is 1.1 the filter 1.1 configuration?



-- 
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

       

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to