Ticket #3311 (closed defect: fixed)
namespace appearing in OGC Filter needs to be strip off
| Reported by: | nsavard | Owned by: | assefa |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 release |
| Component: | WFS Server | Version: | svn-trunk (development) |
| Severity: | normal | Keywords: | wfs1.1 getfeature namespace |
| Cc: | assefa |
Description
A getfeature request with an OGC filter including a property name concatenated with a namespace causes a Postigs error.
The request is:
http://gw.mapgears.com:8500/cgi-bin/mswfs110_ogc_cite?&service=WFS&version=1.1.0&request=GetFeature&typename=sf:PrimitiveGeoFeature&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)&filter=<ogc:Filter%20xmlns:sf="http://cite.opengeospatial.org/gmlsf"%20xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsGreaterThan><ogc:PropertyName>sf:intProperty</ogc:PropertyName><ogc:Literal>100</ogc:Literal></ogc:PropertyIsGreaterThan></ogc:Filter>
The error:
msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed
msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at or near ":"
LINE 1: ...075,500575 500000,500000 500000))',4326) and ( (sf:intProper...
^
) executing query: select "description","name","intProperty","uriProperty","measurand","dateTimeProperty","dateProperty","decimalProperty","id",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"id" from primitivegeofeature where the_geom && GeomFromText('POLYGON((500000 500000,500000 500075,500575 500075,500575 500000,500000 500000))',4326) and ( (sf:intProperty> 100) )
msSaveMap(): Unable to access file. (/tmp/ms_tmp/4b7432a9_2c3f_0._filter.map)
Change History
Note: See
TracTickets for help on using
tickets.
