laptop and a wrench

漏洞

'reassign_to' fails with "AttributeError: 'Item' object has no attribute '_user_id'" because item objects are not properly initialized.

上次发布: March 15, 2019 ArcGIS API for Python
漏洞 ID 编号 BUG-000120384
已提交February 27, 2019
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.5.3
操作系统Windows OS
操作系统版本2012 R2
修正版本1.6.0
状态Fixed

解决办法

For now, work around this issue by adding an additional line to the for loop that explicitly sets the value of the item source owner user ID:for item in usercontent:    item._user_id = 'sourceownerid'    try:        item.reassign_to(new_userid)    except Exception as e:        print("Item may have been already assigned to the user.")

重现步骤

漏洞 ID: BUG-000120384

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项