[Geoserver-devel] [JIRA] (GEOS-7547) expiry of GetFeatureWithLock wrongly expected to be minutes in WFS 2.0

Even Rouault created an issue

GeoServer / BugGEOS-7547

expiry of GetFeatureWithLock wrongly expected to be minutes in WFS 2.0

Issue Type:

BugBug

Affects Versions:

2.9-RC1

Assignee:

Unassigned

Created:

20/May/16 11:56 AM

Environment:

Linux 64 bit

Priority:

MediumMedium

Reporter:

Even Rouault

In WFS 2.0, the expiry parameter of GetFeatureWithLock/LockFeature was changed to be in seconds (OGC 09-025r1 : paragraph 12.2.4.3 : “The expiry limit is specified in number of seconds.”), whereas previous versions was in minutes (sigh…). It seems GeoServer/GeoTools doesn’t take that into account.

The below request should lock the features for 1 seconds, but it actually locks them for 1 minute.

curl -X POST --header “Content-Type:application/xml” --data-binary ‘<wfs:GetFeatureWithLock service=“WFS” version=“2.0.0” handle=“GetFeatureWithLock-tc1” expiry=“1” resultType=“results” xmlns:fes=“http://www.opengis.net/fes/2.0
xmlns:wfs=“http://www.opengis.net/wfs/2.0” xmlns:sf=“http://www.openplans.org/spearfish”>
<wfs:Query typeNames=“sf:tiger_roads”/>
</wfs:GetFeatureWithLock>’

Related to that, the doc at http://docs.geoserver.org/stable/en/user/services/wfs/reference.html mentions in the GetFeatureWithLock that this “This POST example retrieves the features of the topp:states layer, but in addition locks those features for five minutes.” with expiry=5. This is indeed what GeoServer does, but not what is expected.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.5.2#72002-sha1:b4422fe)

Atlassian logo