Opened 14 years ago

Closed 14 years ago

#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 (2)

comment:1 by assefa, 14 years ago

Owner: changed from mapserverbugs to assefa

sql error should be fixed with r9792 (same bug as #3308).

There is still an issue here where intProperty need to be around quotes (since the name uses reserved word int and the beginning).

comment:2 by assefa, 14 years ago

Resolution: fixed
Status: newclosed

committed quotes issue r9930 CITE test pass.

Note: See TracTickets for help on using tickets.