[mapguide-internals] Patch for ticket 1705. Please review

Jackie Ng jumpinjackie at gmail.com
Thu Jun 2 03:46:36 EDT 2011


Hi All,

I've attached a patch for trac ticket 1705 (MAPAGENT call crashes webservers
(IIS & Apache))

http://trac.osgeo.org/mapguide/ticket/1705

This adds a try catch around the call MapAgentGetParser::Parse() to catch
any MgExceptions thrown due to bad query strings. Using the example bad URL
in that ticket no longer derails the ISAPI and Apache handlers.

This patch isn't perfect, it should ideally log this exception too and/or
write out the exception details as part of the http response, but I have no
idea how to do that. But this patch is a start and does solve the problem of
bad urls taking down Apache and IIS.

- Jackie

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Patch-for-ticket-1705-Please-review-tp6430199p6430199.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.


More information about the mapguide-internals mailing list