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

Web Scenario Upgrade Uses Wrong Functions

XMLWordPrintable

    • Sprint 13, Sprint 14
    • 1

      MATSUDA Daiki added a comment

      I checked the code of 3.4.0beta1 and found the bug.

      $ diff -uNrp ./src/libs/zbxdbupgrade/dbupgrade_3030.c.old ./src/libs/zbxdbupgrade/dbupgrade_3030.c
      — ./src/libs/zbxdbupgrade/dbupgrade_3030.c.old 2017-08-03 13:38:10.000724677 +0900
      +++ ./src/libs/zbxdbupgrade/dbupgrade_3030.c 2017-08-03 13:38:47.483115453 +0900
      @@ -838,7 +838,7 @@ static int DBpatch_3030060_migrate_pairs
      
      target_id = zbx_malloc(NULL, len + ZBX_CONST_STRLEN("_fieldid"));
      zbx_strlcpy(target_id, table, len);
      
          zbx_strlcat(target_id, "_fieldid", ZBX_CONST_STRLEN("_field"));
          + zbx_strlcat(target_id, "_fieldid", ZBX_CONST_STRLEN("_fieldid"));
      
      source_id = zbx_malloc(NULL, len + ZBX_CONST_STRLEN("id"));
      zbx_strlcpy(source_id, table, len);
      

            Unassigned Unassigned
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: