[mapguide-trac] #1083: Report meaningful error message without changing MapAgent status text

MapGuide Open Source trac_mapguide at osgeo.org
Thu Sep 3 04:40:34 EDT 2009


#1083: Report meaningful error message without changing MapAgent status text
--------------------------+-------------------------------------------------
 Reporter:  christinebao  |         Owner:  Chris Claydon
     Type:  defect        |        Status:  new          
 Priority:  medium        |     Milestone:  2.2          
Component:  Fusion        |       Version:  2.0.2        
 Severity:  major         |    Resolution:               
 Keywords:                |   External_id:  1246885      
--------------------------+-------------------------------------------------
Comment (by christinebao):

 Attach patch
 https://trac.osgeo.org/mapguide/attachment/ticket/1083/FusionErrorHandling.patch.

 This patch modified the error handling code of fusion, making the error
 handler returned message contains r.transport.responseText instead of
 r.statusText. r.transport.responseText is a formatted HTML content
 containing both class name and exception message, such as:[[BR]]
 {{{
 <html>
   <head>
     <title>MgSessionExpiredException</title>
     <meta http-equiv=\"Content-Type\" content=\"text/html;
 charset=utf-8\">
   </head>
   <body>
     <h2>Session has expired or is invalid. Please log in again.</h2>
     Session has expired or is invalid. Please log in again.
   </body>
 </html>
 }}}

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


More information about the mapguide-trac mailing list