[mapguide-trac] #1705: MAPAGENT call crashes webservers (IIS &
Apache)
MapGuide Open Source
trac_mapguide at osgeo.org
Wed Jun 1 04:27:03 EDT 2011
#1705: MAPAGENT call crashes webservers (IIS & Apache)
-------------------------+--------------------------------------------------
Reporter: zspitzer | Owner:
Type: defect | Status: new
Priority: high | Milestone: 2.2
Component: Map Agent | Version: 2.2.0
Severity: critical | Keywords:
External_id: |
-------------------------+--------------------------------------------------
Comment(by jng):
I did some digging on this matter with a 2.2 branch copy.
The offending line is here:
http://trac.osgeo.org/mapguide/browser/branches/2.2/MgDev/Web/src/ApacheAgent/ApacheAgent.cpp#L153
This method is throwing a MgInvalidArgumentException with the error id
MgInvalidStringConversion
The root location where this exception is thrown is at
MgUtil::MultiByteToWideChar
http://trac.osgeo.org/mapguide/browser/branches/2.2/MgDev/Common/Foundation/System/Util.cpp#L287
The mgmapagent_handler() function does not have an exception handler for
any MgException (or derivatives) and because of this the
MgInvalidArgumentException that is thrown is unhandled and derails the
Apache Web Server process
Perhaps we should have an exception handler for MgException here, and
write out a bad request string response?
Perhaps something similar is happening with the ISAPI and CGI handlers?
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1705#comment:5>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list