laptop and a wrench

漏洞

TypeError: Unable to read properties of undefined (reading 'forEach') when accessing features from an interceptor's query result array.

ArcGIS Maps SDK for JavaScript
漏洞 ID 编号 BUG-000168429
已提交June 18, 2024
上次修改时间December 6, 2024
适用范围ArcGIS Maps SDK for JavaScript
找到的版本4.29
操作系统Windows OS
操作系统版本N/A
状态As Designed

附加信息

The interceptor after must handle all types of results returned by /query. In this case there is a query call to get the feature count, so there are no features in the results, as expected. The solution is to first check if there are features in the response.

解决办法

Verify if an array is returned from the interceptor's query result prior to accessing each feature from the response.

重现步骤

漏洞 ID: BUG-000168429

软件:

  • ArcGIS Maps SDK for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项