Skip to content

Commit

Permalink
[GEOS-8463] WFS 2.0 cannot parse LockFeature requests with GET binding
Browse files Browse the repository at this point in the history
  • Loading branch information
aaime committed Dec 4, 2017
1 parent 22df2ba commit 993622d
Show file tree
Hide file tree
Showing 9 changed files with 830 additions and 324 deletions.
25 changes: 22 additions & 3 deletions src/wfs/src/main/java/applicationContext.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -335,7 +335,21 @@
<property name="version"><value>2.0.0</value></property> <property name="version"><value>2.0.0</value></property>
<property name="request"><value>DescribeFeatureType</value></property> <property name="request"><value>DescribeFeatureType</value></property>
</bean> </bean>

<bean id="lockFeatureNamespaceParser" class="org.geoserver.ows.kvp.NamespaceKvpParser">
<constructor-arg value="namespace"/>
<property name="service"><value>WFS</value></property>
<property name="version"><value>1.1.0</value></property>
<property name="request"><value>LockFeature</value></property>
</bean>
<bean id="lockFeature20NamespaceParser" class="org.geoserver.ows.kvp.NamespaceKvpParser">
<constructor-arg value="namespaces"/>
<constructor-arg value="true"/>
<property name="service"><value>WFS</value></property>
<property name="version"><value>2.0.0</value></property>
<property name="request"><value>LockFeature</value></property>
</bean>


<bean id="featureIdKvpParser" class="org.geoserver.ows.FlatKvpParser"> <bean id="featureIdKvpParser" class="org.geoserver.ows.FlatKvpParser">
<constructor-arg index="0" value="featureId"/> <constructor-arg index="0" value="featureId"/>
<constructor-arg index="1" value="java.lang.String"/> <constructor-arg index="1" value="java.lang.String"/>
Expand Down Expand Up @@ -467,8 +481,13 @@
<constructor-arg ref="geoServer"/> <constructor-arg ref="geoServer"/>
<constructor-arg ref="filterFactory"/> <constructor-arg ref="filterFactory"/>
</bean> </bean>
<bean id="lockFeatureKvpReader" class="org.geoserver.wfs.kvp.WFSKvpRequestReader"> <bean id="lockFeatureKvpReader" class="org.geoserver.wfs.kvp.LockFeatureKvpRequestReader">
<constructor-arg value="net.opengis.wfs.LockFeatureType"/> <constructor-arg ref="geoServer"/>
<constructor-arg ref="filterFactory"/>
</bean>
<bean id="lockFeatureKvp20Reader" class="org.geoserver.wfs.kvp.v2_0.LockFeatureKvpRequestReader">
<constructor-arg ref="geoServer"/>
<constructor-arg ref="filterFactory"/>
</bean> </bean>
<bean id="transactionKvpReader" class="org.geoserver.wfs.kvp.WFSKvpRequestReader"> <bean id="transactionKvpReader" class="org.geoserver.wfs.kvp.WFSKvpRequestReader">
<constructor-arg value="net.opengis.wfs.TransactionType"/> <constructor-arg value="net.opengis.wfs.TransactionType"/>
Expand Down
2 changes: 2 additions & 0 deletions src/wfs/src/main/java/org/geoserver/wfs/LockFeature.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -542,4 +542,6 @@ protected FeatureLock newFeatureLock(LockFeatureRequest request) {
return FeatureLockFactory.generate(handle, lockExpiry * 60 * 1000); return FeatureLockFactory.generate(handle, lockExpiry * 60 * 1000);
} }
} }


} }

0 comments on commit 993622d

Please sign in to comment.