[ZBX-8132] Can't add missing image if map exported with only background image and no icons Created: 2014 Apr 22  Updated: 2017 May 30  Resolved: 2014 Apr 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.3.0
Fix Version/s: 2.3.0

Type: Incident report Priority: Trivial
Reporter: Ivo Kurzemnieks Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: images, import, maps, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Exporting map with only background image, XML is created without "images" tag. Adding at least one element to map, "images" tag in XML will hold both images - icon and background.
Having a map with only background results in several unwanted behaviours. In latest version (trunk, for example) import halts with an exception, displaying error about missing background. But importing earlier version XML (for example 1.8), map is created or updated, but image is not and will display error about missing background.
So checkbox for Images (assuming user is Super Admin) "Add missing" doesn't play any role when map is being imported with only background.



 Comments   
Comment by Krists Krigers (Inactive) [ 2014 Apr 23 ]

After discussion it was decided to fix export in trunk so that background images get exported properly.

Comment by Krists Krigers (Inactive) [ 2014 Apr 23 ]

Fixed and committed in r44718, branch svn://svn.zabbix.com/branches/dev/ZBX-8132.

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 24 ]

(1) No string changes.

Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 24 ]

(2) Ok, now export also process background image, but import doesn't process it.

How to reproduce:
Create background "bg1".
Create map "m1" with background "bg1".
Export map "m1".
Delete map "m1".
Delete background "bg1".
Import map "m1".

Error: Cannot find background image "bg1" used in map "m1".

kristsk Not a bug according to Pavel. RESOLVED.
Eduards Agree! CLOSED

<richlv> please add the reasoning why this is not considered to be a bug

jelisejev Eduards didn't check the "Create missing" checkbox for images, so the images where not supposed to be created.

<richlv> thanks, CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 24 ]

Tested

Comment by Krists Krigers (Inactive) [ 2014 Apr 29 ]

Merged and committed to trunk in r44928.

Generated at Fri Mar 29 14:29:51 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.