The Addition function in the Survey123 Connect for ArcGIS 1.6 app appends the input values instead of summing them up correctly if the first input field is blank or if there are any input fields skipped and left blank.
上次发布: September 26, 2016ArcGIS Survey123
漏洞 ID 编号
BUG-000098738
已提交
August 19, 2016
上次修改时间
August 15, 2020
适用范围
ArcGIS Survey123
找到的版本
1.6
服务器平台
Windows
客户端平台
7.0 64 Bit
Version Fixed
1.8
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Make all input fields as required fields, and provide the hint, 'Enter the value zero (0) instead of leaving it blank'.Alternative 1: Use the if-then-else statement in the calculation to force '0' to be calculated instead of supplied, for example: (if(${one}=0,1-1,${one}))+(if(${two}=0,1-1,${two}))+(if(${three}=0,1-1,${three}))+(if(${four}=0,1-1,${four})).Alternative 2: Cast the field values as integers so that Survey123 treats the fields as numbers instead of strings, for example: int(${field1})+int(${field2}).