[ZBX-21085] Effective date and Start time too far in the past issues in SLA configuration form Created: 2022 May 20  Updated: 2022 Jun 28

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.4, 6.2.0beta3
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: date, error, sla
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File past_date_issues_nr1.gif     GIF File past_date_issues_nr2.gif     GIF File past_date_issues_nr3.gif    
Sprint: Technical backlog

 Description   

Problem description: Two minor past date related issues exist in SLA configuration form:
1 - If a user creates an SLA with Excluded downtime older than 1970 (don't ask why) then no errors will appear, but when the user will attempt to edit this excluded downtime, then the following errors will be shown instead of the excluded downtime configuration form:

Incorrect value "-145677600" for "period_from" field.
Incorrect value "-145674000" for "period_to" field.

Example:

2 - Slightly different situation occurs if the Excluded downtime starts too far in the future - in this case the validation works only when he user attempts to save the created/updated SLA and not when adding the downtime to the SLA. Furthermore, when such future downtime is added to the SLA, the Start date is displayed incorrectly in "Excluded downtimes" table - it is displayed as the top limit of the allowed start time in the current moment.
Example:

The above two problems indicate that the Start date parameter is not validated when adding the Excluded downtime to SLA, but it should be, same as all other parameters in this dialog.

3 - In case if the user will attempt to use a date too far in the future in the SLA "Effective date" field, then there will be a normal error shown informing that the effective date is too large, but if the user enters a date prior to 01-01-1970, then a less user-friendly error message will be shown - see below. Suggestion is to use a similar error message as the one in case if the effective date is too large.

Invalid parameter "/1/effective_date": value must be one of 0-2147483647.

Example:


Generated at Thu Jun 26 06:18:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.