[ZBX-25365] corrupted .yaml export of network maps in 6.0 LTS Created: 2024 Oct 07  Updated: 2025 Mar 18  Resolved: 2025 Mar 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 6.0.33
Fix Version/s: 6.0.40rc1, 7.0.11rc1, 7.2.5rc1, 7.4.0beta1

Type: Problem report Priority: Minor
Reporter: Tomasz Grzechulski Assignee: Aleksejs Sestakovs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL/Rocky Linux 8, php-fpm 7.2.24


Issue Links:
Duplicate
Team: Team B
Sprint: S25-W6/7, S25-W8/9, S25-W10/11
Story Points: 0.5

 Description   

Hello,
I've find that sometimes when Zabbix network map is exported, YAML file of exported map is corrupted. Problem is mainly related to "elementtype = '2'", so to triggers on network maps - Sometimes when map is exported, tag which includes "elementtype = '2'" is broken:
This is "good" export:

selements: 
 - elementtype: '2'
          elements:
            - description: 'lorem ipsum'
              expression: 'last(/lorem ipsum/lorem ipsum[lorem ipsum])=1'
              recovery_expression: ''

But, sometimes exported file looks like that:

 selements:
        -
          elementtype: '2'
          label: |
            lorem ipsum
           lorem ipsum: {?last(/lorem ipsum/lorem ipsum[lorem ipsum])}
            lorem ipsum: {?last(/lorem ipsum/lorem ipsum[lorem ipsum])}
          label_location: '-1'

As you can see, under tag elementtype: '2' we have missing whole section elements, missing are: "description", "expression" and "recovery_expression"
 
Steps to reproduce:

TBA, currently unknown
**

Result:
See above
**

Expected:
Export of .yaml maps working correctly



 Comments   
Comment by Aleksejs Sestakovs [ 2025 Mar 10 ]

Available in versions:

Generated at Sun Apr 20 21:05:10 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.