Dear friends:
The geoserver’s datasourse is shapefile. I have a layer that is named newPoint, and the layer has three features. Fid is newPoint.1, newPoint2, newPoint.3.
Before geoserver2.3.x, if I delete the feature whiche fid is newPoint.2, the following features’ fid is not changed,that is fid=“newPoint.1”, fid=“newPoint.3”, in other words, after delting a feature, the layer’s fid is not continuous. The getfeature operation is right.
But the geoserver2.4.x and 2.5.x, after delting the feature, the following features’ fid is changed, that is fid=“newPoint.1”, fid=“newPoint.2”. That is not the problem. The problem is when I post a getfeature request, for example, http://localhost:8080/geoserver/ChianMap/wfs?SERVER=wfs&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=ChianMap:newPoint&FILTER=<FeatureId fid=“newPoint.2” />, I could not get the feature, that is featureCollection is null. If I delete the .fix file, the getfeature request is right.
That is the geoserver’s bug?