Opened 19 years ago

Closed 19 years ago

#1143 closed defect (fixed)

[WFS] Error when running GetFeature requests with Filter to GML data via OGR

Reported by: tomkralidis Owned by: mapserverbugs
Priority: high Milestone:
Component: WFS Server Version: unspecified
Severity: normal Keywords:
Cc: pagurekd@…, godwinl@…

Description

I have a GML document on disk (sample data attached in next comment).

The data runs through ogrinfo with no apparent problems.

When I run an OGC:WFS GetFeature request against this data, with no filter, the
expected response returns (note that gml:name element is malformed, but that is
covered in bug 1142):

http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?version=1.0.0&service=WFS&request=GetFeature&typename=obs

When I attempt to apply a filter to this GetFeature request:

http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?version=1.0.0&service=WFS&request=GetFeature&typename=obs&filter=<Filter><PropertyIsEqualTo><PropertyName>datetime</PropertyName><Literal>2004-10-30T00:00:00Z</Literal></PropertyIsEqualTo></Filter>

a 500 error is returned.  The following lines show in the logfile:

[Tue Dec 21 17:56:40 2004] [error] [client 192.75.68.5] free(): invalid pointer
0x8277e88!
[Tue Dec 21 17:56:40 2004] [error] [client 192.75.68.5]
/usr/local/wwwsites/apache/devgeo.cciw.ca/cg
i-bin/mapserv/ecows: line 4: 26250 Segmentation fault      ./mapserv
[Tue Dec 21 17:56:40 2004] [error] [client 192.75.68.5] Premature end of script
headers: ecows

Attachments (1)

obs.tar.gz (1.1 KB ) - added by tomkralidis 19 years ago.
test data for this bug

Download all attachments as: .zip

Change History (12)

by tomkralidis, 19 years ago

Attachment: obs.tar.gz added

test data for this bug

comment:1 by pagurekd@…, 19 years ago

Cc: pagurekd@… added

comment:2 by godwinl@…, 19 years ago

Also not working against SDE.  It is important for us to be able to serve data
from SDE via WFS.

We tried against a shapefile and SDE.  Shapefile works, SDE is not.  Here's a
summary....

DescribeFeatureType:  <!-- ERROR: Failed openinig layer ecozones --> is embedded
in XML output

GetFeature with filter (formatted for here)
<Filter>
  <PropertyIsEqualTo>
    <PropertyName>ECOZONE</PropertyName>
    <Literal>13</Literal>
  </PropertyIsEqualTo>
</Filter>

GetFeature with no filter works as expected.

comment:3 by godwinl@…, 19 years ago

Cc: godwinl@… added

comment:4 by godwinl@…, 19 years ago

I forgot part of my error for GetFeature with Filter....

the server returns with a "missing" error:
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns="http://www.ttt.org/myns"
   xmlns:myns="http://www.ttt.org/myns"
   xmlns:wfs="http://www.opengis.net/wfs"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:ogc="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd 
                       http://www.ttt.org/myns
http://<host>/cgi-bin/mapserv?map=/<path>/eco_en.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=ecozones">
   <gml:boundedBy>
      <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>

comment:5 by godwinl@…, 19 years ago

Did some poking with my problem of SDE and WFS+filtering.  It works with version
4.2.5, and not with 4.4 beta 2, so something must have happened between those
releases.

Tom, does the same happen for your connection?

comment:6 by tomkralidis, 19 years ago

I'm not sure.  I only run and am working off latest CVS.

comment:7 by assefa, 19 years ago

I have done the correction in the latest CVS and in 4.4.x branch. I tested the
fix against Tom's gml test data. 

Not sure if it fixes the SDE issue : Liz (or Tom) could you try using the latest
mapserver  cvs to do the same testing against SDE layers. I can provide windows
binaries if necessary.  

comment:8 by tomkralidis, 19 years ago

Test case run again with latest CVS.  Works -- nice!!

Liz: can you test against SDE?

comment:9 by hobu, 19 years ago

Cc: hobu@… added

comment:10 by godwinl@…, 19 years ago

It's now working for me.  Thanks!!!

comment:11 by assefa, 19 years ago

Resolution: fixed
Status: newclosed
Marking it as Fixed as Per Tom's and Liz's comments. Thanks for testing.
Note: See TracTickets for help on using tickets.