Opened 17 years ago
Closed 17 years ago
#370 closed defect (fixed)
Rendering requests not working in Linux
Reported by: | waltweltonlair | Owned by: | waltweltonlair |
---|---|---|---|
Priority: | high | Milestone: | 2.0 |
Component: | Server | Version: | 2.0.0 |
Severity: | major | Keywords: | |
Cc: | External ID: |
Description
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.
Change History (2)
comment:1 by , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |