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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動