Unable to parse emtpy filters in GET request
--------------------------------------------
Key: GEOS-911
URL: http://jira.codehaus.org/browse/GEOS-911
Project: GeoServer
Issue Type: Bug
Components: WFS, WMS
Affects Versions: 1.5.0-RC1
Reporter: Andrea Aime
Assigned To: Andrea Aime
Fix For: 1.6.0
A request like:
wfs?request=GetFeature&typeName=topp:states,tiger:tiger_roads&outputFormat=GML2&FILTER=(<Filter><FeatureId fid="states.3"/></Filter>)()
with the second filter emtpy won't be parsed properly, Geoserver will think there's only one filter and will apply it to every layer.
The issue is, the StringTokenizer used in KvpRequestReader will return just one token, being "()" just a coule of delimiters.
StringTokenizer does not have a notion of open and closed, fixing this would mean modifying parsing quite a bit, since we're under release and apparently nobody complained about this, we'll fix this on the next release.
Workaround: add a space between parenthesis and Geoserver will pick it up just fine.
--
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