[Geoserver-devel] [jira] Created: (GEOS-626) FeatureResponse.execute() miscalculates maxFeatures

FeatureResponse.execute() miscalculates maxFeatures
----------------------------------------------------

         Key: GEOS-626
         URL: http://jira.codehaus.org/browse/GEOS-626
     Project: GeoServer
        Type: Bug

  Components: WFS
    Versions: 1.3.1
Environment: OS X, Java 1.5
    Reporter: Ryan Hofschneider
Assigned to: dblasby

In org.vfny.geoserver.wfs.responses.FeatureResponse.execute(), the variable maxFeatures is decremented by the value of FeatureResults.getCount().

In most cases, this is appropriate as getCount() will return a non-negative value. However, at least one implementation of getCount() return -1 when the calculation has been deemed computationally prohibitive. In particular, I have seen this edge case occur when experiementing with cascading WFS requests.

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