Opened 20 years ago

Closed 15 years ago

#749 closed defect (worksforme)

request errors not raised in the browser

Reported by: ter-haseborg@… Owned by: tomkralidis
Priority: high Milestone: 5.4 release
Component: WMS Client Version: 4.0
Severity: normal Keywords:
Cc:

Description

Request errors due to failing http-requests are not raised to the browser, instead a blank image is shown, neither xml- nor an inimage-exception.

Error is only visible in the error-file if MS_ERRORFILE is set, e.g. to "stderr".

to reproduce:
1) use the following mapfile
#-----------Start of mapfile-------------------------------
# gives an empty map without any error raised
# invalid URL on CONNECTION-Parm to provoke http-request error
# using a valid url would case normal errors raised to browser	 
NAME http-error
SIZE 400 400
STATUS ON
EXTENT 2476553 5540279 2779499 5856970

WEB
	IMAGEPATH "c:\Programme\Apache Group\Apache2\htdocs\tmp\"
	IMAGEURL "/tmp/"
END

   LAYER
	  NAME "something"
	  TYPE RASTER
	  STATUS ON
	  CONNECTIONTYPE WMS
	  CONNECTION "http://invalid-url?LAYERS=something"	# invalid URL to provoke http-request error	 
	  METADATA
	    "wms_title"             "something"
	    "wms_name"              "something"
	    "wms_server_version"    "1.1.0"
	    "wms_srs"               "EPSG:31466"
	    "wms_format"            "image/jpeg"
	  END
   END
END
#-----------End of mapfile---------------------------------


2) browse to with http://<your-server>/cgi-bin/mapserv.exe?map=../htdocs/mapscript/<the_map_mentioned_in_1)>.map&version=1.1.0&request=getMap

result: blank-image
expected result: error-message raised to browser (xml-exception)

system-configuration: Win2k; Apache 2.0.47; MS 4.0; PHP 4.3.2, MapScript rev 1.177

Change History (3)

comment:1 by dmorissette, 20 years ago

*** Bug 748 has been marked as a duplicate of this bug. ***

comment:2 by tomkralidis, 15 years ago

Owner: changed from mapserverbugs to tomkralidis
Status: newassigned

comment:3 by tomkralidis, 15 years ago

Milestone: 5.4 release
Resolution: worksforme
Status: assignedclosed

FYI I tested this out (note a few more parameters had to be added due to #1088), and receive propert ServiceException XML in the browser client (which gets prompted to open/save). Closing.

Note: See TracTickets for help on using tickets.