#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 , 16 years ago
Status: | new → assigned |
---|
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 15 years ago
Fixed in the sandbox stream with submission https://trac.osgeo.org/mapguide/changeset/3994.
Fixed in the trunk stream with submission https://trac.osgeo.org/mapguide/changeset/3642.