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

not escaped characters could cause DB2 sql import to fail

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't fix
    • Affects Version/s: 3.4.0beta2
    • Fix Version/s: None
    • Labels:
    • Team:
      Team C
    • Sprint:
      Sprint 22

      Description

      If you place

      ;
      

      Inside description field of the template, and then run

      export_data.sh  -uzabbix -pzabbix zabbix ZBX_DATA > ../src/data.tmpl
      export_data.sh  -uzabbix -pzabbix zabbix ZBX_TEMPLATE > ../src/templates.tmpl
      

      and then
      make dbschema

      That would cause DB2 templates.sql fail to be imported.

      there probably should be better escaping implemented when preparing DB2 dump.

      More on this:
      https://www.ibm.com/support/knowledgecenter/en/SSEPGG_10.5.0/com.ibm.db2.luw.admin.ts.doc/doc/c0059609.html

      Vladislavs Sokurenko could provide more info

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vzhuravlev Vitaly Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: