-
Notifications
You must be signed in to change notification settings - Fork 445
Closed
Description
The bug is with editing multiple attributes in Attribute Table for which only one of them is saved.
Basically MapStore is performing WFS-T request with a wrong XML syntax in this case.
The body of the XML is:
<wfs:Transaction service="WFS" version="1.1.0"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs"
xmlns:mapstore="http://gs-stable.geo-solutions.it/geoserver/mapstore">
<wfs:Update typeName="mapstore:Types">
<wfs:Property>
<wfs:Name>Integer</wfs:Name>
<wfs:Value>20</wfs:Value>
</wfs:Property>
<ogc:Filter>
<ogc:FeatureId fid="Types.1"/>
</ogc:Filter>
</wfs:Update>,
<wfs:Update typeName="mapstore:Types">
<wfs:Property>
<wfs:Name>Long</wfs:Name>
<wfs:Value>33</wfs:Value>
</wfs:Property>
<ogc:Filter>
<ogc:FeatureId fid="Types.1"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>
While for editing multiple attributes it should be something like the following:
<wfs:Transaction service="WFS" version="1.1.0"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs"
xmlns:mapstore="http://gs-stable.geo-solutions.it/geoserver/mapstore">
<wfs:Update typeName="mapstore:Types">
<wfs:Property>
<wfs:Name>Integer</wfs:Name>
<wfs:Value>20</wfs:Value>
</wfs:Property>,
<wfs:Property>
<wfs:Name>Long</wfs:Name>
<wfs:Value>33</wfs:Value>
</wfs:Property>
<ogc:Filter>
<ogc:FeatureId fid="Types.1"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>
How to reproduce
DRAFT LIST OF STEPS
- Open a map with a geoserver layer that can be edited for testing
- Edit multiple attribute values
Expected Result
All edited attributes are persisted as expected
Current Result
Only one of them is saved
- Not browser related
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)| Browser Affected | Version |
|---|---|
| Internet Explorer | |
| Edge | |
| Chrome | |
| Firefox | |
| Safari |
Other useful information
Reactions are currently unavailable