Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#862 closed defect (fixed)

Enhanced logging displays suppressed errors from layer labels

Reported by: waltweltonlair Owned by: waltweltonlair
Priority: medium Milestone: 2.2
Component: General Version: 2.0.2
Severity: minor Keywords:
Cc: External ID: 1198689

Description

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.

Change History (3)

comment:1 by waltweltonlair, 15 years ago

Status: newassigned

comment:2 by waltweltonlair, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixed in the trunk stream with submission https://trac.osgeo.org/mapguide/changeset/3642.

comment:3 by waltweltonlair, 15 years ago

Fixed in the sandbox stream with submission https://trac.osgeo.org/mapguide/changeset/3994.

Note: See TracTickets for help on using tickets.