FID handling on inserts

Description

If a FID is specified in an insert-request, the FID is added as an extra attribute in GeoServer's feature. This way an extra attribute is added, while not really existing in the database. Inserts may fail because of this. The samples below of a (part of a) request and feature illustrate this.
....
<wfs:Insert>
<TEST_BOUNDARY FID="12345">
<SHAPE>
<gml:MultiLineString gid='TEST_BOUNDARY.999999' srsName='http://www.opengis.net/gml/srs/epsg.xml#28992'>
<gml:lineStringMember>
<gml:LineString>
<gml:coordinates decimal='.' cs=',' ts=' '>107000100,448949999 107009792,448936759</gml:coordinates>
</gml:LineString>
</gml:lineStringMember>
</gml:MultiLineString>
</SHAPE>
<CLASSIF>999999</CLASSIF>
....

The Feature in Geoserver is:
Feature[ id=feature-2326550 , FID=12345 , SHAPE=MULTILINESTRING ((107000100 448949999, 107009792 448936759)) , CLASSIF=999999]

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:11 PM

CodeHaus Comment From: seangeo - Time: Thu, 18 Dec 2003 07:26:46 -0600
---------------------
<p>I think this error is caused by the problem with FID parsing when inserting. I won't able to investigate this further until this bug is fixed.</p>

codehaus
April 10, 2015, 4:11 PM

CodeHaus Comment From: seangeo - Time: Thu, 18 Dec 2003 07:28:53 -0600
---------------------
<p>That last comment seems to have been put there where adding the dependancy between this and <a href="https://jira.codehaus.org/browse/GEOS-34" title="Inserts fail on Oracle: could not create FEATURE out of provided feature" class="issue-link" data-issue-key="GEOS-34"><del>GEOS-34</del></a>. It is not really relevant to this bug.</p>

codehaus
April 10, 2015, 4:11 PM

CodeHaus Comment From: cocoa - Time: Thu, 18 Dec 2003 10:42:22 -0600
---------------------
<p>This is actually a problem in TransactionFeatureHandler. It adds xml attributes on the gml feature element as attributes on the feature object. I had the same problem with xsi:schemaLocation attributes on the feature element. TransactionFeatureHandler is very messy in this regard. For instance, it does not consider optional feature properties.</p>

codehaus
April 10, 2015, 4:11 PM

CodeHaus Comment From: cholmes - Time: Tue, 6 Jan 2004 13:25:59 -0600
---------------------
<p>TransactionFeatureHandler no longer reads in attributes as AttributeTypes, so FIDs and xsi:schemaLocations are no longer added as weird feature attributes.</p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure