in-image errors mask full error message
(No 4.10 is in the version list. Also, I really wanted an "Output-Image" option,
since that is kind of the best place for this.)
The in-image error handling for mapserver only reports one error message. This
means that when an XML serviceException will report text like:
msDrawMap(): Image handling error. Failed to draw layer named 'image'.
IReadBlock failed at X offset 4, Y offset 14: Unable to access file.
GDALRasterIO() failed: drawGDAL()
The inimage error handler will only display:
msDrawMap(): Image handling error. Failed to draw layer named 'image'.
In order to get my hands on the latter message, I spent an hour in gdb. There
are easier ways to get it, but it wasn't obvious to me that the message was
being returned.
Some options:
* In addition to reporting in image, also write out to stderr. This would be
useful in the under-apache case, and was the first place i looked.
* Include all error messages in the inimage string.
I'll attach a patch which does the latter, and then I'll attach example output.
This may lower support costs for users who are used to using inimage exceptions:
OpenLayers uses these by default, and being able to get the actual error back
from the service instead of having to change a URL to get it would be useful.
Change History
(7)
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Patch to change inimage error string