[mapguide-trac] #482: Logging mechanism can sometimes crash if GetCurrentUserInfo() throws an exception

MapGuide Open Source trac_mapguide at osgeo.org
Tue Mar 4 12:59:23 EST 2008


#482: Logging mechanism can sometimes crash if GetCurrentUserInfo() throws an
exception
----------------------------+-----------------------------------------------
   Reporter:  brucedechant  |       Owner:       
       Type:  defect        |      Status:  new  
   Priority:  high          |   Milestone:  2.1  
  Component:  Server        |     Version:  2.0.0
   Severity:  major         |    Keywords:       
External_id:  1050025       |  
----------------------------+-----------------------------------------------
 The logging macro MG_CONNECTION_INFO calls
 MgUserInformation::GetCurrentUserInfo() and in some cases (especially on
 Linux) this API can throw the MgConnectionNotOpenException exception which
 is not being caught by the macro. This then causes the server to crash
 because it is an uncaught exception.

 The fix for this is to add a try/catch block to the macro.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/482>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list