Opened 20 years ago

Closed 20 years ago

#524 closed defect (fixed)

No relative paths for WEB.IMAGEPATH in CGI browse mode

Reported by: frank.koormann@… Owned by: dmorissette
Priority: high Milestone: 4.2 release
Component: MapServer CGI Version: 4.0
Severity: minor Keywords:
Cc:

Description

It is only partly possible to work with relative path for the WEB.IMAGEPATH in
MapServer 4.0: Maps work, reference, legend and scalebar aren't rendered in 
BROWSE mode. 
The reason seems to be the call of msSaveImage() in
maptemplate.c(msGenerateImages): For the map msObj->Map is handed over as a
parameter of msSaveImage(), for the other three NULL is used. As a consequence
in msSaveImage() the path is expanded using msBuildPath for the map but not for
the others. Not sure if it has some side effects when the call of msSaveIMage is
changed.

Change History (2)

comment:1 by dmorissette, 20 years ago

Cc: steve.lime@… added
Milestone: 4.2 release
Owner: changed from sdlime to morissette@…
Um... I don't think there would be any problem in passing the map all the time.
 This looks like legacy code that hasn't been updated properly.

I'll try to cehck this before the 4.2 release.

comment:2 by dmorissette, 20 years ago

Resolution: fixed
Status: newclosed
It's been hard to find a way to reproduce this one since only very specific
combinations of relative paths would trigger it.  Anyway, I was able to
reproduce and fix, and confirm that the fix works (in 4.l CVS).
Note: See TracTickets for help on using tickets.