Opened 19 years ago

Closed 16 years ago

#1422 closed defect (worksforme)

Internal Server Error when data not found for layer

Reported by: bartvde@… Owned by: tomkralidis
Priority: high Milestone: 5.2 release
Component: WFS Server Version: 4.6
Severity: normal Keywords:
Cc: hobu

Description

When issuing a GetFeature request with a Filter, and Mapserver cannot find the
data, an internal server exception occurs.

If you do a GetFeature request with a query but without a Filter, a correct
error message is reported, see:

D:\sources\python>mapserver_getfeature.py
<ServiceExceptionReport
xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i
nstance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.cubewerx.
com/schemas//wms/1.1.1/OGC-exception.xsd">
  <ServiceException>
msSHPOpenFile(): Unable to access file. (/ms4w/apps/stragisweb/htdocs/sites/ijmo
nd/map/bis/geo/bis_loc)
msSHPOpenFile(): Unable to access file. (/ms4w/apps/stragisweb/htdocs/sites/ijmo
nd/map/../data/bis/geo/bis_loc)
  </ServiceException>
</ServiceExceptionReport>

This type of exception should also be reported when the request is containing a
Filter, eg:

<GetFeature maxfeatures="100" service="WFS" version="1.0.0"
xmlns="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0 WFS-basic.xsd"><Query
xmlns=""
typename="bislocatie"><ogc:Filter><ogc:DWithin><ogc:PropertyName>Geometry</ogc:PropertyName><gml:Polygon
srsName="EPSG:28992"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>104030.047950,498012.127900
104030.263050,498036.333900 104055.456000,498041.950000
104056.623000,498042.210050 104056.669950,498041.993050
104059.873950,498027.176150 104061.607050,498019.162900
104030.047950,498012.127900
</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon><ogc:Distance
units="m">0.01</ogc:Distance></ogc:DWithin></ogc:Filter></Query></GetFeature>

So this results in an internal server error when the data cannot be found, ie
the geographical data file cannot be found on the filesystem.

Change History (7)

comment:1 by tomkralidis, 16 years ago

Milestone: 5.2 release
Owner: changed from mapserverbugs to tomkralidis
Status: newassigned

Bart: Using svn trunk, I've tried this and I get an ServiceExceptionReport as expected when I issue a GetFeature request with or without a Filter.

Can you verify this is still a valid issue?

comment:2 by bartvde, 16 years ago

Hey Tom, if I for instance leave out the DATA statement for an ArcSDE layer, it still crashes. This is using 5.0.2. But I think this is highly dependent on the layer type. I probably had this with OGR MapInfo TAB files in the past.

comment:3 by tomkralidis, 16 years ago

Thanks for the info. I tested with a shapefile, given the msSHPOpenFile call. Gien that this is data specific, perhaps this should be an SDE bug? What do you think?

comment:4 by bartvde, 16 years ago

Yep, but I don't see ArcSDE in the component list :-) . I would be also fine with closing this Tom and reopening if we run into this again.

comment:5 by tomkralidis, 16 years ago

Cc: hobu added

cc'ing hobu for any comments

comment:6 by tomkralidis, 16 years ago

Any comments here? Any objections to closing this issue?

comment:7 by bartvde, 16 years ago

Resolution: worksforme
Status: assignedclosed

Let's close this one.

Note: See TracTickets for help on using tickets.