[mapguide-trac] #1968: MgRaster serialization error

MapGuide Open Source trac_mapguide at osgeo.org
Tue Mar 13 00:12:12 EDT 2012


#1968: MgRaster serialization error
-------------------------------+--------------------------------------------
   Reporter:  jng              |       Owner:     
       Type:  defect           |      Status:  new
   Priority:  high             |   Milestone:  2.4
  Component:  Feature Service  |     Version:     
   Severity:  critical         |    Keywords:     
External_id:                   |  
-------------------------------+--------------------------------------------
 Attempting to serialize a MgRaster with palette information will crash the
 MapGuide Server.

 The problem is that the m_palette member is a MgByte, which does not
 inherit from MgSerializable, thus the resulting call to
 MgStreamWriter::WriteObject() performs an invalid cast on the MgByte to
 MgSerializable

 The solution is to either:

  * Implement a MgSerializable wrapper for MgByte objects
  * Use a non-WriteObject method for serializing the MgByte object (not
 sure if this can be done)

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


More information about the mapguide-trac mailing list