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

    Details

    • Type: Incident report
    • Status: Reopened
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 2.4.5
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zalex_ua Oleksiy Zagorskyi
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: