[Geoserver-devel] [jira] Created: (GEOS-369) Filter Functions don't work, ExpressionSAXParser misses implementation

Filter Functions don't work, ExpressionSAXParser misses implementation
----------------------------------------------------------------------

         Key: GEOS-369
         URL: http://jira.codehaus.org/browse/GEOS-369
     Project: GeoServer
        Type: Bug
  Components: WFS
    Versions: 1.3-rc1
    Reporter: Thijs Brentjens
Assigned to: dblasby
    Priority: Minor
     Fix For: 1.3.0, 1.3-rc2

The WFS-Capabilities say that there are several filter functions implemented (like: geomLength), but these can not be used. For example, when using a filter like:

<Filter >
  <PropertyIsGreaterThan>
    <Function name="geomLength">
      <PropertyName>GEOM</Propertyname>
    </Function>
    <Literal>100</Literal>
  </PropertyIsGreaterThan>
</FIlter>

A serviceexception (parsing error) is returned.

The log says:

746133 [FINER] GMLFilterDocument - ENTRY Function Function org.xml.sax.helpers.AttributesImpl@anonymised.com
746133 [FINER] org.geotools.filter.FilterFilter - found start element: Function
746133 [FINEST] org.geotools.filter.FilterFilter - types: (xml): Function; (internal): -1
org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: 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(Unknown Source)
  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)

It seems that support for filter functions is not implemented in ExpressionSAXParser. ExpressionDOMParser seems to have that, but this one is not used.

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