Bug report #17945
Namespace missing during WFS-T Update request
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Even Rouault | ||
Category: | Web Services clients/WFS | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows x86_64 | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 25841 |
Description
Using an deegree WFT-T server, it's possible to insert and remove features. However, an Update request fails. The reason is a missing namspace for the property to update. Here's a snippet generated by QGIS 2.99:
<Property xmlns="http://www.opengis.net/wfs>"
<Name xmlns="http://www.opengis.net/wfs">propertyname</Name>
<Value xmlns="http://www.opengis.net/wfs">some-text</Value>
</Property>
The target namespace of the <Transaction> request is set to http://www.opengis.net/wfs, which is fine. The typename's namespace is declared, too. So what is missing is the namepsace for the propertyname:
<Name xmlns="http://www.opengis.net/wfs">app:propertyname</Name>
Associated revisions
[WFS provider] Add typename prefix before attribute/geometry name for Update requests (fixes #17945)
Deegree requires those namespace prefixes. I've also verified that
GeoServer is indifferent regarding them.
History
#1 Updated by Even Rouault over 6 years ago
- Assignee set to Even Rouault
#2 Updated by Even Rouault over 6 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|1e4b01bb9b3941c8603162bf5757d6423e6eabb4.