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" 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&typename=sf:restricted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Delete typeName="feature:restricted" xmlns:feature="http://www.openplans.org/spearfish">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:FeatureId fid="restricted.5"/>
</ogc:Filter>
</wfs:Delete>
<wfs:Delete typeName="feature:restricted" xmlns:feature="http://www.openplans.org/spearfish">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ows="http://www.opengis.net/ows" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>java.lang.RuntimeException: Encode failed for totalDeleted. Cause: Value &apos;-1&apos; must be non-negative (0 or above).
Encode failed for totalDeleted. Cause: Value &apos;-1&apos; must be non-negative (0 or above).
Value &apos;-1&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