Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9598

XML import containing 0x1B character (ASCII escape character) is failed

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.4.5
    • API (A)

      http://en.wikipedia.org/wiki/Escape_character

      The character is here:

      
      

      (copy-paste works for me)

      When I try to import such XML - it ends with

      XML file contains fatal error 9:PCDATA invalid Char value 27 [ Line: 417 | Column: 17 ] [conf.import.php:190 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CXmlImportReader->read() in /zab/www-dev/2.4/include/classes/import/CConfigurationImport.php:132]
      

      It's possible to insert this character manually, into host name for example, using zabbix frontend (I used Opera12 browser).

      I discovered this issue for a "software_full" inventory field which was populated automatically by server.
      It was specific description of software/hardware of a linux-based box.

      So, it may be stored, exported to XML but cannot be imported later.

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: