Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.2-beta1
-
Component/s: WFS
-
Labels:None
-
Environment:HideApache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: /home/car605/junk/java/maven3
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: /home/car605/junk/java/jdk1.6.0_26.x64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "2.6.40.6-0.fc15.x86_64", arch: "amd64", family: "unix"
Or Eclipse Helios x86_64 with the same jdk1.6.0_26.x64
ShowApache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800) Maven home: /home/car605/junk/java/maven3 Java version: 1.6.0_26, vendor: Sun Microsystems Inc. Java home: /home/car605/junk/java/jdk1.6.0_26.x64/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "2.6.40.6-0.fc15.x86_64", arch: "amd64", family: "unix" Or Eclipse Helios x86_64 with the same jdk1.6.0_26.x64
-
Number of attachments :
Description
When the WFS 2.0 patch (GEOS-4511) is applied to trunk, SampleDataAccessWfsTest.getFeatureContent fails because it receives a WFS 2.0 response even when it requests version=1.1.0. This occurs if and only if a WFS 2.0 request is made first (SampleDataAccessWfsTest.getFeature). If SampleDataAccessWfsTest.getFeatureContent is run by itself, it gets a WFS 1.1 response and passes.
Although SampleDataAccessWfsTest is in app-schema/sample-data-access-test, it has no dependency on app-schema at all! (It was designed to test the handling of generic DataAccess by core.)
This failure indicates a serious problem in WFS core.
The workaround is to put version=1.1.0 on all GET URLs in this test suite, which causes them all to pass, but the underlying problem must be identified.
Issue Links
- is depended upon by
-
GEOS-4511
WFS 2.0
-
The attached patch causes SampleDataAccessWfsTest to fail every time. The patch triggers the miscreant behaviour by making a WFS 2.0 request first, before a WFS 1.1 request. The second request is not honoured, being instead treated as a WFS 2.0 request. Naughty GeoServer. Naughty.