You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test replaceFeature in Transaction CC fails if feature versioning is enabled. Test steps:
create and submit replace request (with the original feature and gml:id)
assert correct value of totalReplaced
retrieve replaced feature (with the id of the original feature)
The problem is that in 3. the id from 1. is used. If feature versioning is enabled this is the id of the superseded feature not the one of the valid feature.
As specified in WFS 2.0 (15.3.6 ReplaceResults element, see below) the id from the ReplaceResults (step 1) should be used to verify if the feature was correctly replaced (in step 3).
15.3.6 ReplaceResults element
If a transaction request contains replace actions and the server supports versioning, then the
wfs:ReplaceResults element shall be specified in the transaction response to report which features have been
replaced and what their new identifiers are.
The wfs:ReplaceResults element contains one or more wfs:Feature elements that indicate the new feature
identifiers of the replaced feature instances. One wfs:Feature element shall be reported for each replaced
feature instance. Each wfs:Feature element shall contain a fes:ResourceId element (see OGC 09-026r2, 7.11)
that shall include the rid attribute whose value is the feature identifier of the newly created version of the
feature and the oldRid attribute whose value shall be the identifier of previous version.
The text was updated successfully, but these errors were encountered:
The test replaceFeature in Transaction CC fails if feature versioning is enabled. Test steps:
The problem is that in 3. the id from 1. is used. If feature versioning is enabled this is the id of the superseded feature not the one of the valid feature.
As specified in WFS 2.0 (15.3.6 ReplaceResults element, see below) the id from the ReplaceResults (step 1) should be used to verify if the feature was correctly replaced (in step 3).
The text was updated successfully, but these errors were encountered: