[ZBX-6922] It's not possible to import the host. Created: 2013 Aug 23  Updated: 2017 May 30  Resolved: 2013 Aug 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 2.0.7, 2.0.8
Fix Version/s: 2.0.9rc1, 2.1.3

Type: Incident report Priority: Critical
Reporter: Andrei Gushchin (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: hostinterfaces, import, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File ImportHostError.png     XML File ImportHostError.xml    
Issue Links:
Duplicate
is duplicated by ZBX-6918 Importing just exported host fails wi... Closed

 Description   

That host has been imported in Zabbix 2.0.6 version.
When I am importing the attached host. I receive the following error.

Undefined offset: 0 [include/db.inc.php:1119]
Undefined index: if1 [include/classes/import/CConfigurationImport.php:570]
No interface found.



 Comments   
Comment by Andrei Gushchin (Inactive) [ 2013 Aug 23 ]

It works fine for the 2.0.6 and trunk versions.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Aug 23 ]

This could be the same problem as ZBX-6918.

Comment by Eduards Samersovs (Inactive) [ 2013 Aug 27 ]

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

Comment by Alexander Vladishev [ 2013 Aug 27 ]

(1) It is a useless code if $sort is false. Better to move it under "if ($sort)

{...}

".

$values = array_values($values);

Eduards RESOLVED r.38164

sasha CLOSED

Comment by Alexander Vladishev [ 2013 Aug 27 ]

(2) Please review a new tests (r38151).

Eduards OK

Comment by Alexander Vladishev [ 2013 Aug 28 ]

Successfully tested!

Comment by Eduards Samersovs (Inactive) [ 2013 Aug 28 ]

Fixed in versions pre-2.1.3 (trunk) r.38174, pre-2.0.9rc1 r.38173

Comment by Volker Fröhlich [ 2013 Sep 25 ]

Will be in EPEL 2.0.8-3 packages.

Generated at Wed Apr 17 00:22:54 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.