[Geoserver-devel] [jira] Created: (GEOS-3228) Empty filter causes IndexOutOfBoundsException

Empty filter causes IndexOutOfBoundsException
---------------------------------------------

                 Key: GEOS-3228
                 URL: http://jira.codehaus.org/browse/GEOS-3228
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.7.5
         Environment: Tomcat 5.5, Java 1.5.0, WinXP
            Reporter: Mark Leslie
            Assignee: Andrea Aime
            Priority: Minor

Using the default war package sample data (1.7.5), go to the demo page and select WFS_GetFeatureBetween, yielding:

http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=topp:states&propertyName=STATE_NAME,LAND_KM,the_geom&outputFormat=GML2&FILTER=<Filter%20xmlns%3D"http%3A//www.opengis.net/ogc"><PropertyIsBetween><PropertyName>topp%3ALAND_KM</PropertyName><LowerBoundary><Literal>100000</Literal></LowerBoundary><UpperBoundary><Literal>150000</Literal></UpperBoundary></PropertyIsBetween></Filter>

Remove the filter value, but leave the key:

http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=topp:states&propertyName=STATE_NAME,LAND_KM,the_geom&outputFormat=GML2&FILTER=

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  at java.util.ArrayList.RangeCheck(Unknown Source)
  at java.util.ArrayList.get(Unknown Source)
  at org.geotools.xml.EMFUtils.set(EMFUtils.java:226)

The resulting error seems to be a result of GEOS-1914, but it's unclear why the empty filter fails (instead of being interpreted as no filter for example).

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