Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8142

Template with UTF-8 (with BOM) text fails to import

XMLWordPrintable

    • Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023)
    • 0.125

      Steps to reproduce:

      1. copy from git.zabbix.com template using Notepad++, for example, in Windows or somehow else, doesn't matter

      Result:
      Template load fails ( template_net_f5_bigip_snmp_from_zbx_repo.yaml );

      Expected:
      Ignore BOM and import the template.

      diff -w 178945_template_net_f5_bigip_snmp_from_zbx_repo.yaml  template_net_f5_bigip_snmp.yaml 
      1c1
      < zabbix_export:
      ---
      > zabbix_export:
      
      $ file 178945_template_net_f5_bigip_snmp_from_zbx_repo.yaml
      178945_template_net_f5_bigip_snmp_from_zbx_repo.yaml: Unicode text, UTF-8 (with BOM) text
      
      $ file template_net_f5_bigip_snmp.yaml
      template_net_f5_bigip_snmp.yaml: Unicode text, UTF-8 text
      

        1. grafik-6.png
          33 kB
          Edgar Akhmetshin
        2. remove_bom.png
          17 kB
          Reinis Detlavs
        3. template_net_f5_bigip_snmp_from_zbx_repo.yaml
          145 kB
          Edgar Akhmetshin

            epulke Elina Pulke
            edgar.akhmetshin Edgar Akhmetshin
            Team C
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: