[mapguide-trac] #862: Enhanced logging displays suppressed errors from layer labels

MapGuide Open Source trac_mapguide at osgeo.org
Wed Feb 25 12:06:19 EST 2009


#862: Enhanced logging displays suppressed errors from layer labels
------------------------------+---------------------------------------------
   Reporter:  waltweltonlair  |       Owner:  waltweltonlair
       Type:  defect          |      Status:  new           
   Priority:  medium          |   Milestone:  2.2           
  Component:  General         |     Version:  2.0.2         
   Severity:  minor           |    Keywords:                
External_id:  1198689         |  
------------------------------+---------------------------------------------
 If you display a map that uses legacy layer definitions containing labels
 and you have advanced error logging enabled, then errors may get logged.
 This is because some older layer definitions do not have quoted alignment
 values for their labels, e.g.:

 {{{
   <HorizontalAlignment>Left</HorizontalAlignment>
   <VerticalAlignment>Bottom</VerticalAlignment>
 }}}

 Because the quotes are missing the server assumes the values are
 expressions and tries to evaluate them.  This results in an exception
 which is properly handled, but has the side effect of logging an error.

 The fix is to add quotes (if necessary) to the alignment values for layer
 definitions based on schema version 1.2.0 and earlier.  Newer layer
 defeinitions (schema version 1.3.0) will not be checked.  The assumption
 is that applications which create these layer definitions (e.g. MapGuide
 Studio, Maestro) will already be quoting the values.

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


More information about the mapguide-trac mailing list