Bug report #17945

Namespace missing during WFS-T Update request

Added by Martin Kofahl almost 7 years ago. Updated over 6 years ago.

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

Revision 1e4b01bb
Added by Even Rouault over 6 years ago

[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.

Revision 9fcee524
Added by Even Rouault over 6 years ago

Merge pull request #7128 from rouault/fix_17945

[WFS provider] Add typename prefix before attribute/geometry name for Update requests (fixes #17945)

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

Also available in: Atom PDF