Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test replaceFeature failures with enabled feature versioning #55

Closed
lgoltz opened this issue Oct 18, 2016 · 0 comments
Closed

Test replaceFeature failures with enabled feature versioning #55

lgoltz opened this issue Oct 18, 2016 · 0 comments
Assignees
Labels

Comments

@lgoltz
Copy link
Contributor

lgoltz commented Oct 18, 2016

The test replaceFeature in Transaction CC fails if feature versioning is enabled. Test steps:

  1. create and submit replace request (with the original feature and gml:id)
  2. assert correct value of totalReplaced
  3. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants