We are still experiencing the WFS bug described in

https://osgeo-org.atlassian.net/browse/GEOS-7961

with the following versions of GeoServer:

- 2.7.1.1
- 2.10.2
- 2.12_20171108.


Below is a simple shell script to replicate the problem by doing a
BBOX getfeature request using epsg:900919 on TOPP:States layer using
Curl. If the script is run several times, the error appears in our
environment. And as mentioned, v2.6.5 is not affected by this bug.


Will really appreciate it if this problem can be looked at again. Thanks.


Test script:

==========


for i in {0..20}; do
  echo "Running WFS Requests $i"

  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin:
http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H
'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type:
application/xml' -H 'Accept: */*'   -H 'X-Requested-With:
XMLHttpRequest' -H 'Connection: keep-alive' --data-binary
'<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp";
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";> <wfs:Query
typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
srsName="http://www.opengis.net/gml/srs/epsg.xml#900913";><gml:lowerCorner>-8360384.63640429
4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466
5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>'
--compressed -s -o ./GRP_case2_1.xml &

  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin:
http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H
'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type:
application/xml' -H 'Accept: */*'   -H 'X-Requested-With:
XMLHttpRequest' -H 'Connection: keep-alive' --data-binary
'<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp";
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";> <wfs:Query
typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
srsName="http://www.opengis.net/gml/srs/epsg.xml#900913";><gml:lowerCorner>-8360384.63640429
4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466
5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>'
--compressed -s -o ./GRP_case2_2.xml &

  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin:
http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H
'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type:
application/xml' -H 'Accept: */*'   -H 'X-Requested-With:
XMLHttpRequest' -H 'Connection: keep-alive' --data-binary
'<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp";
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";> <wfs:Query
typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
srsName="http://www.opengis.net/gml/srs/epsg.xml#900913";><gml:lowerCorner>-8360384.63640429
4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466
5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>'
--compressed -s -o ./GRP_case2_3.xml &

  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin:
http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H
'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type:
application/xml' -H 'Accept: */*'   -H 'X-Requested-With:
XMLHttpRequest' -H 'Connection: keep-alive' --data-binary
'<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp";
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";> <wfs:Query
typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
srsName="http://www.opengis.net/gml/srs/epsg.xml#900913";><gml:lowerCorner>-8360384.63640429
4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466
5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>'
--compressed -s -o ./GRP_case2_4.xml &

  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin:
http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H
'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type:
application/xml' -H 'Accept: */*'   -H 'X-Requested-With:
XMLHttpRequest' -H 'Connection: keep-alive' --data-binary
'<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp";
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";> <wfs:Query
typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
srsName="http://www.opengis.net/gml/srs/epsg.xml#900913";><gml:lowerCorner>-8360384.63640429
4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466
5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>'
--compressed -s -o ./GRP_case2_5.xml &

  wait
  grep "Unable to encode filter" ./GRP_case2_*.xml
done
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to