Hi Isomorphic,
Our QAs discovered issue in the relativeDateItem. When the item is in relative mode and the quantity field contains huge number it is possible to experience two kinds of issues:
1. DSRequest will contain advanced criteria where the value of the field is 0NaN-NaN-NaNTNaN:NaN:NaN.
2. DSRequest will contain advanced criteria where the value of the field is the last valid value.
On the showcase I was able to reproduce second issue:
First the quantity is 900000 months. The date is still valid and shown with negative year.
If we increase quantity to 9000000 months, attached formatter will be invoked with standard base time (1970), but the value of the field will be reported as last valid value which was set to the item.
I can understand that there will be some limitations for the dates, but I would like to know how you suggest to prevent user from producing such wrong values.
I already consider setting start and end date, but this limits only the datePicker component.
Also I tried to use DateRangeValidator. But because the item is reporting the last valid value only, it is possible that I will set 9 millions months ago, but the validated value will be 1 month ago and validator will not complain.
Thanks
Matus
Reproduced on SmartClient Version: v10.0p_2016-09-27/LGPL Development Only (built 2016-09-27) with GC45.
Modified showcase source code in the attachments.
Our QAs discovered issue in the relativeDateItem. When the item is in relative mode and the quantity field contains huge number it is possible to experience two kinds of issues:
1. DSRequest will contain advanced criteria where the value of the field is 0NaN-NaN-NaNTNaN:NaN:NaN.
2. DSRequest will contain advanced criteria where the value of the field is the last valid value.
On the showcase I was able to reproduce second issue:
First the quantity is 900000 months. The date is still valid and shown with negative year.
If we increase quantity to 9000000 months, attached formatter will be invoked with standard base time (1970), but the value of the field will be reported as last valid value which was set to the item.
I can understand that there will be some limitations for the dates, but I would like to know how you suggest to prevent user from producing such wrong values.
I already consider setting start and end date, but this limits only the datePicker component.
Also I tried to use DateRangeValidator. But because the item is reporting the last valid value only, it is possible that I will set 9 millions months ago, but the validated value will be 1 month ago and validator will not complain.
Thanks
Matus
Reproduced on SmartClient Version: v10.0p_2016-09-27/LGPL Development Only (built 2016-09-27) with GC45.
Modified showcase source code in the attachments.
Comment