laptop and a wrench

漏洞

In the ArcGIS API for Python documentation, the returns section states that the expected return is a 'dictionary containing the layerServerGens and an array of edits.' However, a filepath is returned if the parameter return_ids_only=true.

上次发布: January 31, 2022 ArcGIS Online
漏洞 ID 编号 BUG-000139327
已提交April 23, 2021
上次修改时间June 5, 2024
适用范围ArcGIS Online
找到的版本9.1
操作系统Windows OS
操作系统版本10.0
修正版本2.0.1
状态Fixed

解决办法

Use a function to write the file contents back into the Python script:

import json

f = open(filepath, 'r')

for line in f:

  filecontent= line

f.close()

changedict = json.loads(filecontent)

重现步骤

漏洞 ID: BUG-000139327

软件:

  • ArcGIS Online

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项