Also it is documented so it is not really undefined/unwandet behaviour.
What is the Bug?
The map struct of the Server methods has a flaw.
One member is named wrong (or unintuitive) "Environnement".
How can I reproduce this?
Call any method that returns a map struct via xmlrpc on a server.
What is my expectation of this bug?
The name should be "Environment".
Affected Functions
GetCurrentMapInfo
GetNextMapInfo
GetMapInfo
GetMapList
(list may be incomplete)
Problems
A change might invalidate current server managers, as they "rely" on the error, but this is minor
as with the introduction of the SetApiVersion method it can be circumvented.
Further references:
Quoted from the tm-karma plugin of xaseco2 when using the output of GetCurrentMapInfo:
Code: Select all
plugin.tm-karma-dot-com.php: $map->environment = $response['Environnement']; // "Environnement" is wrong written by nadeo!!!