SAX Filter parser doesnt handle Functions

Description

The SAX <Filter> parser does NOT handle <Function name=...> elements.

The DOM parser, however, does.

For geoserver this means that SLD handles <Function> but WFS GetFeature doesnt.

<?xml version="1.0" encoding="iso-8859-1"?>
<GetFeature outputFormat="GML2" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc">
<Query typeName="topp:tasmania_roads">
<Filter>
<PropertyIsGreaterThan>
<ogc:Function name="geomLength">
<PropertyName>topp:the_geom</PropertyName>
</ogc:Function>
<Literal>1</Literal>
</PropertyIsGreaterThan>
</Filter>
</Query>
</GetFeature>

Caused by: org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: ogc:Function. HINT: tags are case-sensitive!
at org.geotools.filter.FilterFilter.startElement(FilterFilter.java:130)
at org.geotools.gml.GMLFilterGeometry.startElement(GMLFilterGeometry.java:167)
at org.geotools.gml.GMLFilterDocument.startElement(GMLFilterDocument.java:164)
at org.xml.sax.helpers.ParserAdapter.startElement(ParserAdapter.java:597)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431)
at org.vfny.geoserver.wfs.requests.readers.GetFeatureXmlReader.read(GetFeatureXmlReader.java:72)

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:10 PM

CodeHaus Comment From: dblasby - Time: Wed, 13 Jul 2005 11:05:51 -0500
---------------------
fixed on 2.1.x branch. Jody is moving the patch to trunk.

codehaus
April 10, 2015, 3:10 PM

CodeHaus Comment From: aaime - Time: Sun, 28 Nov 2010 02:56:02 -0600
---------------------
Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Priority

High
Configure