Opened 20 years ago
Closed 20 years ago
#748 closed defect (duplicate)
request errors not raised in the browser
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | |
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
Note:
See TracTickets
for help on using tickets.