[Geoserver-devel] [jira] Created: (GEOS-1913) GeoServer KVP filter parser turns property filter into literal comparisons

GeoServer KVP filter parser turns property filter into literal comparisons
--------------------------------------------------------------------------

                 Key: GEOS-1913
                 URL: http://jira.codehaus.org/browse/GEOS-1913
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.6.3
            Reporter: Andrea Aime
            Assignee: Andrea Aime
            Priority: Blocker
             Fix For: 1.6.4

Trying to hit GeoServer with the following GetFeature:

http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=topp:states&propertyName=STATE_NAME,PERSONS&filter=<ogc%3AFilter%20xmlns%3Aogc%3D"http%3A//ogc.org"%20xmlns%3Agml%3D"http%3A//www.opengis.net/gml"><ogc%3APropertyIsEqualTo><ogc%3APropertyName>STATE_NAME</ogc%3APropertyName><ogc%3ALiteral>New%20York</ogc%3ALiteral></ogc%3APropertyIsEqualTo></ogc%3AFilter>%20

results in the FilterKVPParser successfully using the new XML filter parser, which in turn generates a IsEqualsTo implementation against two literals, "STATE_NAME" and "New York", instead of generating an IsEqualsTo between a property name and a literal.
Doing the same query with a POST request works fine. Wild guess is that the new parser may need to know the target feature type to properly parse this kind of filter?

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