laptop and a wrench

漏洞

arcgis.gis.admin.Logs.query() method does not honor the time interval defined between start_time and end_time with the Datetime formats that are mentioned in the ArcGIS API for Python documentation or reference.

上次发布: October 11, 2022 ArcGIS API for Python
漏洞 ID 编号 BUG-000149835
已提交June 8, 2022
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.9.1
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

The URL used to initialize a logs object must be initialized using the portaladmin URL. The logs object does not need to be initialized directly using the Logs class but instead is available as a logs property of the admin manager object. from arcgis.gis import GIS portal_connection = GIS("portal_url", "username", "password") logs = portal_connection.admin.logs Testing after initializing in this manner returned appropriate results when the input start_time and end_time arguments were either: * a DateTime object * a timestamp object with time (no milliseconds): ex "2022-06-06T16:56:26" * a floating object representing seconds: 1654548986.911

解决办法

Use the second Python script sample with the Python Datetime object and portal timestamp without using milliseconds (YYYY-MM-DDTHH:MM:SS) as inputs for the 'start_time' and 'end_time' arguments.  

重现步骤

漏洞 ID: BUG-000149835

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项