Cannot encode WFS 1.0 transction
--------------------------------
Key: GEOS-2311
URL: http://jira.codehaus.org/browse/GEOS-2311
Project: GeoServer
Issue Type: New Feature
Components: Versioning
Affects Versions: 1.7.0-RC4
Reporter: Andrea Aime
Assignee: Justin Deoliveira
Fix For: 1.7.1
WFSV GetDiff operation defaults to encode the output as a WFS transaction (the transaction that applied to the first revision of the data would lead it to the second revision).
Now, I can encode WFS 1.1.0 transaction fine, but if I try to modify one of the sample WFSV requests to look like:
{code:xml}
<wfsv:GetDiff service="WFSV" version="1.0.0"
outputFormat="text/xml; subtype=wfs-transaction/1.0.0"
xmlns:topp="http://www.openplans.org/topp"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:wfsv="http://www.opengis.net/wfsv"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfsv
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-versioning.xsd">
<wfsv:DifferenceQuery typeName="topp:archsites" fromFeatureVersion="CURRENT" toFeatureVersion="1"/>
</wfsv:GetDiff>
{code}
The output I get is just:
{code:xml}
<wfs:Transaction xsi:schemaLocation="http://www.openplans.org/topp http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:archsites http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd"/>
{code}
Nothing gets actually extracted from the object, I get no warnings (not even if I use the GEOTOOOLS_DEVELOPER logging configuration).
Debugging thru the the encoder left me no wiser, so I just give up and leave it to the pros.
The incriminated classes are:
* wfsv\src\main\java\org\geoserver\wfsv\response\v1_1_0\AbstractTransactionOutputFormat.java
* wfsv\src\main\java\org\geoserver\wfsv\response\v1_0_0\TransactionOutputFormat.java
* wfsv\src\main\java\org\geoserver\wfsv\response\v1_1_0\TransactionOutputFormat.java (this one works)
To reproduce the issue you'll have to build with versioning enable (-Pwfsv) and use the versioning data dir.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira