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

Database upgrade fails if no user with userid 1 exists

XMLWordPrintable

    • Sprint 12
    • 0

      The upgrade procedure should possibly check for the lowest existing userid of a Zabbix Super Admin, instead using a hard coded '1':

      --- SNIP --- src/libs/zbxdbupgrade/dbupgrade_3030.c ---
      
              zbx_db_insert_prepare(&db_insert, "dashboard", "dashboardid", "name", "userid", "private", NULL);
      
              zbx_db_insert_add_values(&db_insert, __UINT64_C(1), "Dashboard", __UINT64_C(1), 0);
      
      --- SNAP --- src/libs/zbxdbupgrade/dbupgrade_3030.c ---
      

            Unassigned Unassigned
            okkuv9xh Marc
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: