[Geoserver-devel] Disappearing features on versioned wfs update

Hi Seb,
I've been looking at your logs and I tried to replicate
the issue with my spearfish versioning db and failed...
So I looked again at the logs.

Here you insert the feature:
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0" service="WFSV">
   <wfs:Insert>
     <topp:sitez xmlns:topp="http://mapserver.gis.umn.edu/mapserver&quot;&gt;
       <topp:the_geom>
         <gml:Point xmlns:gml="http://www.opengis.net/gml&quot; srsName="EPSG:900913">
           <gml:coordinates decimal="." cs="," ts=" ">
             -8233992.555617954,4979365.996773784
           </gml:coordinates>
         </gml:Point>
       </topp:the_geom>
       <topp:title>PHINEAS</topp:title>
       <topp:description>GAGE</topp:description>
       <topp:img_url>./theme/img/marker.png</topp:img_url>
     </topp:sitez>
   </wfs:Insert>
</wfs:Transaction>

It comes back from GetFeature as:

<gml:featureMember>
   <topp:sitez fid="sitez.40">
     <topp:title>PHINEAS</topp:title>
     <topp:img_url>./theme/img/marker.png</topp:img_url>
     <topp:description>GAGE</topp:description>
     <topp:the_geom>
       <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913&quot;&gt;
         <gml:coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs="," ts=" ">
           -8233992.55561795,4979365.99677378
         </gml:coordinates>
       </gml:Point>
     </topp:the_geom>
   </topp:sitez>

then you update it with the following (see how coorindates changed):

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0" service="WFSV">
     <wfs:Update typeName="topp:sitez">
       <wfs:Property>
         <wfs:Name>the_geom</wfs:Name>
         <wfs:Value>
           <gml:Point xmlns:gml="http://www.opengis.net/gml&quot;&gt;
             <gml:coordinates decimal="." cs="," ts=" ">
               -8232903.327965083,4979299.114374043
             </gml:coordinates>
           </gml:Point>
         </wfs:Value>
       </wfs:Property>
       <wfs:Property>
         <wfs:Name>title</wfs:Name>
         <wfs:Value>PHINEAS</wfs:Value>
       </wfs:Property>
       <wfs:Property>
         <wfs:Name>img_url</wfs:Name>
         <wfs:Value>./theme/img/marker.png</wfs:Value>
       </wfs:Property>
       <wfs:Property>
         <wfs:Name>description</wfs:Name>
         <wfs:Value>GAGE</wfs:Value>
       </wfs:Property>
       <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
         <ogc:FeatureId fid="sitez.40" />
       </ogc:Filter>
     </wfs:Update>
   </wfs:Transaction>

and then you don't get it anymore from the same
GetFeature as before.

As far as I can see, the problem lies in the update...
you forgot to state the coordinates of the updated point
are still in 900913, so they have been treated as lon/lat...
Well, I guess in these cases having a check for valid
coordinate ranges would be good...

Cheers
Andrea