[fusion-trac] #493: When exception happened,
the error message is not wrapped well
Fusion
trac_fusion at osgeo.org
Tue Nov 22 02:05:37 EST 2011
#493: When exception happened, the error message is not wrapped well
------------------------+---------------------------------------------------
Reporter: yangte | Owner: yangte
Type: defect | Status: new
Priority: P3 | Milestone: 2.3
Component: MapGuide | Version: 2.0
Severity: Minor | Keywords: Error Message wrap
External_id: 1414632 | State: New
Browser: All | Os: Windows
------------------------+---------------------------------------------------
simillar problem happens when the server is down and user click 'Buffer'
/'Measure', 'Query', 'Redline'..etc. the message is not wrappred
well.[[BR]]
steps:[[BR]]
1. Open a flexible web layout in browser[[BR]]
2. Wait till the session timeout[[BR]]
3. Click 'Buffer' or 'Measure' button in the toolbar[[BR]]
result:[[BR]]
the message is not wrapped well. system directly prints the raw data of
response.
(refer to attachment 'session expired.png')
[[BR]]
This is because in the Common.php, when catch the exception, it will
output extra error message, just remove the line:[[BR]]
echo "{success: false, message:'".$initializationErrorMessage."'}";
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/493>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list