[ZBX-14977] Unnecessary DB record on host prototype create if inventory mode is disabled Created: 2018 Oct 09  Updated: 2024 Apr 10  Resolved: 2018 Dec 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.22, 3.4.14, 4.0.0
Fix Version/s: 3.0.25rc1, 4.0.3rc1, 4.2.0alpha2, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Andrejs Griščenko Assignee: Miks Kronkalns
Resolution: Fixed Votes: 0
Labels: inventory
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
part of ZBX-14926 Cannot full clone template due error ... Closed
Team: Team B
Sprint: Sprint 44, Sprint 45, Sprint 46, Nov 2018, Sprint 47, Dec 2018
Story Points: 1

 Description   

Steps to reproduce:

  1. Navigate to Configuration->Templates.
  2. Create Discovery rule with Host prototype having "Host inventory" = Disabled.
  3. Open table "host_inventory" in any SQL editor and find inventory data of new host prototype by hostid.

Result:
Record is present in DB, "inventory_mode" has value "-1".
Expected:
Record is not present in DB.



 Comments   
Comment by Miks Kronkalns [ 2018 Oct 11 ]

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

Comment by Miks Kronkalns [ 2018 Nov 28 ]

Fixed in:

  • 3.0.25rc1 r87342, r87507
  • 4.0.3rc1 r87351, r87353, r87509
  • 4.2.0alpha2 (trunk) r87354, r87510
Generated at Wed Apr 24 04:18:19 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.