[ZBX-14538] Wrong lifetime error message text, nothing is said that can use 0 Created: 2018 Jun 28  Updated: 2024 Apr 10  Resolved: 2019 Mar 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 3.4.12rc1, 4.0.0alpha9
Fix Version/s: 4.0.6rc1, 4.2.0rc1, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Natalja Romancaka Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 2
Labels: message
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-15590 Item's "History storage period" can be 0 Closed
Team: Team D
Sprint: Sprint 49 (Feb 2019), Sprint 50 (Mar 2019)
Story Points: 0.125

 Description   

Steps to reproduce:

  1. Create new LLD rule
  2. Type name, key and set 1 in "Keep lost resources period"
  3. Try save LLD

Result:
Get message "Incorrect value for field "lifetime": must be between "3600" and "788400000"."
But "Keep lost resources period" can also accept 0 value to delete entities immediately
Expected:
Something like "Incorrect value for field "lifetime": must be between "3600" and "788400000" or "0"."

This is actual for storage period too:
Item -> History/Trends storage period



 Comments   
Comment by Andrejs Griščenko [ 2019 Feb 15 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-14538

Comment by Andrejs Griščenko [ 2019 Mar 05 ]

Fixed in:

  • 4.0.6rc1 r90640
  • 4.2.0rc1 (trunk) r90642
Comment by Alexander Vladishev [ 2019 Mar 16 ]

Updated documentation, mentioning '0' as valid option:

Generated at Thu Apr 25 10:50:35 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.