SASGIS - SAS.Планета | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002051 | SAS.Планета | Рефакторинг | public | 26-07-2013 19:56 | 28-07-2013 17:49 |
Reporter | vdemidov | ||||
Assigned To | vdemidov | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | .Nightly | ||||
Target Version | 131111 | Fixed in Version | 131111 | ||
Summary | 0002051: Ошибка в геокодере | ||||
Description | В геокодере u_GeoCoderByURL есть такой код: if PosEx('go.2gis.ru', VLink, 1) > 0then begin sdesc := VLink; VHeader := 'Cookie: 2gisAPI=c2de06c2dd3109de8ca09a59ee197a4210495664eeae8d4075848.943590'; VLink := ''; VRequest := TDownloadRequest.Create(sdesc, VHeader, InetSettings.GetStatic); VResult := Downloader.DoRequest(VRequest, ACancelNotifier, AOperationID); if Supports(VResult, IDownloadResultOk, VResultOk) then begin SetLength(VLink, VResultOk.Data.Size); Move(VResultOk.Data.Buffer^, VLink[1], VResultOk.Data.Size); i := PosEx('center/', sname, 1); j := PosEx(',', sname, i ); slon := Copy(sname, i + 7, j - (i + 7)); i := j; j := PosEx('/', sname, i ); slat := Copy(sname, i + 1, j - (i + 1)); sname := '2gis'; end; end; Судя по всему тут ошибка копипасты, вместо sname должно быть VLink иначе зачем делали запрос совершенно непонятно. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
26-07-2013 19:56 | vdemidov | New Issue | |||
26-07-2013 19:56 | vdemidov | Status | new => assigned | ||
26-07-2013 19:56 | vdemidov | Assigned To | => Garl | ||
28-07-2013 17:49 | vdemidov | Status | assigned => resolved | ||
28-07-2013 17:49 | vdemidov | Fixed in Version | => 131111 | ||
28-07-2013 17:49 | vdemidov | Resolution | open => fixed | ||
28-07-2013 17:49 | vdemidov | Assigned To | Garl => vdemidov |
There are no notes attached to this issue. |