Ticket #3733 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Improve error reporting in msSaveImage()

Reported by: dmorissette Owned by: dmorissette
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: tbonfort

Description

The current version of msSaveImage (6.0.0-beta1 / SVN trunk) fails silently if it is unable to open the output file (for instance if IMAGEPATH is not set or is not writable), and then MapServer ends up returning an empty template output without any error message. We should at a minimum call msSetError() in this case.

Actually, there is very little error reporting in this function so there may be other error situations that need to be better handled as well.

Change History

Changed 2 years ago by dmorissette

  • owner changed from sdlime to dmorissette
  • status changed from new to assigned

Changed 2 years ago by dmorissette

  • status changed from assigned to closed
  • resolution set to fixed

Fixed SVN trunk r11449. Improved error reporting and msDebug() output in msSaveImage().

Note: See TracTickets for help on using tickets.