[mapguide-trac] #370: Rendering requests not working in Linux

MapGuide Open Source trac_mapguide at osgeo.org
Tue Dec 11 18:03:58 EST 2007


#370: Rendering requests not working in Linux
------------------------------+---------------------------------------------
   Reporter:  waltweltonlair  |       Owner:  waltweltonlair
       Type:  defect          |      Status:  new           
   Priority:  high            |   Milestone:  2.0           
  Component:  Server          |     Version:  2.0.0         
   Severity:  major           |    Keywords:                
External_id:                  |  
------------------------------+---------------------------------------------
 Rendering requests were not working in Linux.  The problem was the version
 checking for the HTTP request (!GetDynamicMapOverlayImage).  The code was
 doing checks against the actual version string, rather than an integer
 based value for the version.

 Old code:
     STRING versionNoPhase = m_version.substr(0, 3);
     if ((versionNoPhase != L"1.0") &&
         (versionNoPhase != L"2.0"))

 New code:
     INT32 version = m_userInfo->!GetApiVersion();
     if (version != MG_API_VERSION(1,0,0) &&
         version != MG_API_VERSION(2,0,0))

 The version string is platform dependent.  In Windows it comes in as
 "1.0.0", but in Linux it comes in as "1".  So you can see why the old code
 would fail...

 We have special code in
 MgHttpRequestResponseHandler::!InitializeCommonParameters which does
 robust processing of the version string and calls
 MgUserInformation::!SetApiVersion.

 The !GetTileImage request had a similar problem - it has also been fixed.

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


More information about the mapguide-trac mailing list