[Mapguide-trac] [mapguide-trac] #2249: Do not dispatch GETDYNAMICOVERLAYIMAGE requests if any display parameter values are <= 0

MapGuide Open Source trac_mapguide at osgeo.org
Thu Mar 28 08:02:49 PDT 2013


#2249: Do not dispatch GETDYNAMICOVERLAYIMAGE requests if any display parameter
values are <= 0
---------------------------+------------------------------------------------
   Reporter:  jng          |       Owner:     
       Type:  defect       |      Status:  new
   Priority:  low          |   Milestone:     
  Component:  AJAX Viewer  |     Version:     
   Severity:  trivial      |    Keywords:     
External_id:               |  
---------------------------+------------------------------------------------
 The cause of those "value cannot be less than zero" exceptions in
 MgRenderingService::RenderDynamicOverlay is most likely caused by the AJAX
 Viewer firing off GETDYNAMICOVERLAYIMAGE requests willy-nilly without any
 sort of client-side verification.

 The viewer should be doing this verification. Do not send a
 GETDYNAMICOVERLAYIMAGE request if any of the parameters are <= 0:

  * width
  * height
  * dpi
  * scale
  * metersPerUnit

 This should cut down on the incidences of such exceptions being logged
 server-side

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


More information about the mapguide-trac mailing list