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=%3CFilter%20xmlns%3D%22http%3A//www.opengis.net/ogc%22%3E%3CPropertyIsBetween%3E%3CPropertyName%3Etopp%3ALAND_KM%3C/PropertyName%3E%3CLowerBoundary%3E%3CLiteral%3E100000%3C/Literal%3E%3C/LowerBoundary%3E%3CUpperBoundary%3E%3CLiteral%3E150000%3C/Literal%3E%3C/UpperBoundary%3E%3C/PropertyIsBetween%3E%3C/Filter%3E

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

        

------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to