[ZBX-24690] If the trigger description field contains a "line break" and a "-", the exported YAML format is incorrect. Created: 2024 Jun 20 Updated: 2025 Jan 22 Resolved: 2025 Jan 22 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | API (A) |
| Affects Version/s: | 6.0.31 |
| Fix Version/s: | 6.0.38rc1, 7.0.9rc1, 7.2.3rc1, 7.4.0alpha1 |
| Type: | Problem report | Priority: | Trivial |
| Reporter: | Itsuki Karimata | Assignee: | Gregory Chalenko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | export, yaml | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 11h | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Centos8Stream |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Team: | |||||||||||||||||||||
| Sprint: | S24-W26/27, S24-W50/51/52/1, S25-W2/3 | ||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||
| Description |
|
This does not occur in XML, only in YAML format. Steps to reproduce:
Result: Details Import failed Invalid tag "/zabbix_export/templates/template(1)/items/item(2)": unexpected tag "mappings". [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImportCompare->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->importcompare() → CXmlValidator->validate() → C60XmlValidator->validate() → CXmlValidatorGeneral->doValidate() → CXmlValidatorGeneral->doValidateRecursive() → CXmlValidatorGeneral->doValidateRecursive() → CXmlValidatorGeneral->doValidateRecursive() → CXmlValidatorGeneral->doValidateRecursive() → CXmlValidatorGeneral->doValidateRecursive() in include/classes/import/validators/CXmlValidatorGeneral.php:234] Expected: YAML output result ... triggers: - uuid: 01afbfccdf624240bfe6deef1c6f3791 expression: 'max(/ICMP Ping_temp1/icmpping,#3)=0' name: 'Unavailable by ICMP ping' status: DISABLED priority: HIGH description: | Last three attempts returned timeout. Please check device connectivity. - valuemaps: - uuid: 2af9a2d53eec46d7b1a35f39685cdaed ... Exported output with “-” changed to “test” ... triggers: - uuid: 01afbfccdf624240bfe6deef1c6f3791 expression: 'max(/ICMP Ping_temp1/icmpping,#3)=0' name: 'Unavailable by ICMP ping' status: DISABLED priority: HIGH description: | Last three attempts returned timeout. Please check device connectivity. test valuemaps: - uuid: 2af9a2d53eec46d7b1a35f39685cdaee ... |
| Comments |
| Comment by Gregory Chalenko [ 2025 Jan 08 ] |
|
Resolved in feature/ZBX-24690-6.0. |
| Comment by Gregory Chalenko [ 2025 Jan 16 ] |
|
Available in versions:
|