[Geoserver-devel] [jira] Created: (GEOS-2643) trouble with multiple deletes in a single transaction

trouble with multiple deletes in a single transaction
-----------------------------------------------------

                 Key: GEOS-2643
                 URL: http://jira.codehaus.org/browse/GEOS-2643
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.7.1
            Reporter: Tim Schaub
            Assignee: Andrea Aime

When issuing a transaction with multiple delete elements, an exception is being returned about the totalDelete count being -1. (This to http://demo.opengeo.org/geoserver.)

Request:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.openplans.org/spearfish http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=sf:restricted&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <wfs:Delete typeName="feature:restricted" xmlns:feature="http://www.openplans.org/spearfish&quot;&gt;
        <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
            <ogc:FeatureId fid="restricted.5"/>
        </ogc:Filter>
    </wfs:Delete>
    <wfs:Delete typeName="feature:restricted" xmlns:feature="http://www.openplans.org/spearfish&quot;&gt;
        <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
            <ogc:FeatureId fid="restricted.8"/>
        </ogc:Filter>
    </wfs:Delete>
</wfs:Transaction>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows http://demo.opengeo.org:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xmlns:ows="http://www.opengis.net/ows&quot; xmlns:xml="http://www.w3.org/XML/1998/namespace&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>java.lang.RuntimeException: Encode failed for totalDeleted. Cause: Value &amp;apos;-1&amp;apos; must be non-negative (0 or above).
Encode failed for totalDeleted. Cause: Value &amp;apos;-1&amp;apos; must be non-negative (0 or above).
Value &amp;apos;-1&amp;apos; must be non-negative (0 or above).</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

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