laptop and a wrench

漏洞

The RouteTask.setCredential method is not applying the credential to service requests.

上次发布: September 20, 2019 ArcGIS Runtime SDK
漏洞 ID 编号 BUG-000124688
已提交August 21, 2019
上次修改时间June 11, 2022
适用范围ArcGIS Runtime SDK
找到的版本100.5
操作系统Apple iOS
操作系统版本N/A
状态In Product Plan

解决办法

Use one of the following workarounds:

  • Set a UserCredential that is constructed from username and password like the following on the RouteTask.

UserCredential credential = new UserCredential(“your username”, “your password”);

  • Use the AuthenticationManager.CredentialCache.restoreFromJson method to apply token for the service https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/security/AuthenticationManager.CredentialCache.html#restoreFromJson(java.lang.String).

e.g.

AuthenticationManager.CredentialCache.restoreFromJson("[{\"serverContext\":\"route.arcgis.com/arcgis\",\"credential\":\"{\\\"password\\\":\\\"\\\",\\\"token\\\":{\\\"expires\\\":9223372036854775807,\\\"ssl\\\":true,\\\"token\\\":\\\" <token> \\\"},\\\"username\\\":\\\"\\\"}\"}]");

重现步骤

漏洞 ID: BUG-000124688

软件:

  • ArcGIS Runtime SDK

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项