[Mapguide-trac] [mapguide-trac] #2511: MapGuide crash on a layer with a malformed tooltip

MapGuide Open Source trac_mapguide at osgeo.org
Tue Nov 25 02:28:13 PST 2014


#2511: MapGuide crash on a layer with a malformed tooltip
--------------------------+-------------------------------------------------
   Reporter:  gabrimonfa  |       Owner:       
       Type:  defect      |      Status:  new  
   Priority:  low         |   Milestone:       
  Component:  General     |     Version:  2.5.0
   Severity:  major       |    Keywords:       
External_id:              |  
--------------------------+-------------------------------------------------
 I'm on

 mapguide 2.5.2 32 bit @ centos 6
 OGR Provider (with libgdal recompiled to support PostgreSQL).

 one of my colleague by mistake set a layer tooltip mixing double quotes
 and single quotes.
 In particular, since the tooltip had some words within single quotes, he
 surrounded the entire tooltip within double quotes, instead of properly
 escaping single quotes.
 The wrong tooltip was like

 <Tooltip>"Something like this 'bla bla' R. G. 'bla bla'"</Tooltip>

 When hovering the mouse on the polygon with this tooltip MapGuide 2.5.2
 (but also 2.4.0) crashed without logging anything.
 This happened always, so it's easily reproducible.

 Validating the problematic layer with Maestro did not reveal the problem.
 Fixing the tooltip solved the problem.

 I'm worried about this crash because we have a lot of maps and many
 different people working on map authoring, so wrong tooltip may happens
 from time to time and I've not yet found a systematic way to check them.

 Step needed to reproduce the bug:
   1. unzip the test.zip into an aliased folder called "mapguide_data"
   2. load mgp into mapguide
   3. connect to the server with Maestro
   4. Open maestro options under Tool>Options. In the tab Editors uncheck
 "Preview with local map viewer (where applicable)". We need this in order
 to preview the map in a browser, previewing in local map viewer does not
 reveal the bug.
   5. open the layer in maestro and preview the layer using Preview button
   6. In the browser window, pan to one of the geometry
   7. Hover the mouse inside the geometry.
   8. No tooltip is showed, mapguide crashed

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


More information about the mapguide-trac mailing list