WFS 1.0 transaction response contains spurious InsertResult element
-------------------------------------------------------------------
Key: GEOS-2485
URL: http://jira.codehaus.org/browse/GEOS-2485
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 1.7.1
Reporter: Andrea Aime
Assignee: Justin Deoliveira
Fix For: 1.7.2
The transaction response to an operation that does not contain inserts looks like:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<wfs:WFS_TransactionResponse version="1.0.0" ... >
<wfs:InsertResult>
<ogc:FeatureId fid="none" />
</wfs:InsertResult>
<wfs:TransactionResult>
<wfs:Status>
<wfs:SUCCESS />
</wfs:Status>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>
{code}
While schema compliant, the presence of InsertResults there does not make sense. The schema does not require an InsertResult element to be present, the specification just says:
"The <InsertResult> element contains one or more feature identifiers of newly created feature instances. One <InsertResult> element is reported per <Insert> element in the request."
Which could be read as zero InsertResult elements for zero Insert elements. Besides nitpick details, having the InsertResult element is confusing and fid="none" is a valid fid as any.
--
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