[ZBX-7111] Problems when importing a host from 1.8 into 2.2 Created: 2013 Oct 07 Updated: 2017 May 30 Resolved: 2013 Oct 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 2.1.7 |
Fix Version/s: | 2.1.7 |
Type: | Incident report | Priority: | Major |
Reporter: | Pavels Jelisejevs (Inactive) | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | host, import, regression | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
When I try to import the attached host from 1.8 to 2.2, a bunch of errors are displayed: Invalid argument supplied for foreach() [conf.import.php:130 ? CConfigurationImport->import() ? CXmlImport18::parseMain() ? CAPIObject->massAdd() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CTemplate->massAdd() ? CHostGeneral->link() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CHostGeneral.php:144] If that host already exists: an additional error is displayed: Undefined index: inventory [conf.import.php:130 ? CConfigurationImport->import() ? CXmlImport18::parseMain() ? CAPIObject->update() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CHost->update() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CHost.php:947] The same happens with templates. Works correctly in 2.0. |
Comments |
Comment by Eduards Samersovs (Inactive) [ 2013 Oct 08 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7111 |
Comment by Pavels Jelisejevs (Inactive) [ 2013 Oct 08 ] |
TESTED. |
Comment by Eduards Samersovs (Inactive) [ 2013 Oct 08 ] |
Fixed in versions pre-2.1.7 (trunk) r.39099 |