[mapguide-trac] #705: MapGuide does not clean up temporary files

MapGuide Open Source trac_mapguide at osgeo.org
Fri Mar 6 17:04:50 EST 2009


#705: MapGuide does not clean up temporary files
---------------------------------------------+------------------------------
 Reporter:  ksgeograf                        |         Owner:       
     Type:  defect                           |        Status:  new  
 Priority:  low                              |     Milestone:       
Component:  General                          |       Version:  2.0.1
 Severity:  trivial                          |    Resolution:       
 Keywords:  temporary files C:\windows\temp  |   External_id:       
---------------------------------------------+------------------------------
Comment (by waltweltonlair):

 The problem occurs in the web tier in two places:
 MapAgentCommon::!PopulateData and CgiPostParser::Parse.  Whenever we get a
 multipart/form-data post request we scan for a "filename=" parameter.  If
 found we save the content to a temporary file, and use the temporary file
 name as the content's value.  Then when the code contacts the server with
 the request it reloads the data from the temporary file.  But..., once
 everything is done these temporary files are never deleted.

 There's a TODO comment in MapAgentCommon::!PopulateData and
 CgiPostParser::Parse about changing the infrastructure so that the
 content's data can be directly passed in, rather than using the temporary
 file.  Making this change is the way to fix this.

 I must say it's very annoying when all these temp files get left behind.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/705#comment:6>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list