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

SQL ERROR "Duplicate entry" in the Web scenarios page

      Web scenario edit page (I reproduce this issue in template, witch is linked to the other hosts)
      Enter new application and double click on the save button.

      Error in query [INSERT INTO applications (name,hostid,applicationid) VALUES ('CPUXX','10125','500')] [Duplicate entry '10125-CPUXX' for key 2]
      SQL statement execution has failed "INSERT INTO applications (name,hostid,applicationid) VALUES ('CPUXX','10125','500')".
      Cannot add new application "CPUXX".

          [ZBX-7980] SQL ERROR "Duplicate entry" in the Web scenarios page

          Oleg Egorov (Inactive) added a comment - - edited

          (1) Same problem in items

          Error in query [INSERT INTO applications (name,hostid,applicationid) VALUES ('CPUXXX','10125','506')] [Duplicate entry '10125-CPUXXX' for key 2]
          SQL statement execution has failed "INSERT INTO applications (name,hostid,applicationid) VALUES ('CPUXXX','10125','506')".

          Oleg Egorov (Inactive) added a comment - - edited (1) Same problem in items Error in query [INSERT INTO applications (name,hostid,applicationid) VALUES ('CPUXXX','10125','506')] [Duplicate entry '10125-CPUXXX' for key 2] SQL statement execution has failed "INSERT INTO applications (name,hostid,applicationid) VALUES ('CPUXXX','10125','506')".

          (2) In items mass update, after double click, we have sql error and one new problem in multiselect.

          Add new or existing applications: AAAA(new)
          But application AAAA - exist.
          And after re-saving
          Application "AAAAA" already exists.

          From application should be removed status "(new)".

          Oleg Egorov (Inactive) added a comment - (2) In items mass update, after double click, we have sql error and one new problem in multiselect. Add new or existing applications: AAAA(new) But application AAAA - exist. And after re-saving Application "AAAAA" already exists. From application should be removed status "(new)".

          (3) Same problem in web checks

          Oleg Egorov (Inactive) added a comment - (3) Same problem in web checks

          Possible issue related to ZBX-3406 - api validation and host names duplicates

          Oleg Egorov (Inactive) added a comment - Possible issue related to ZBX-3406 - api validation and host names duplicates

          richlv added a comment -

          ZBX-8263 seems to be related

          richlv added a comment - ZBX-8263 seems to be related

          Cannot reproduce on newer versions since applications have been removed since 5.4. Even more double clicking is not possible in massupdate, because the JS prevents it. And even 4.4-5.2 seems like this cannot be reproduced. I didn't get any errors.
          Closing the issue.

          Ivo Kurzemnieks added a comment - Cannot reproduce on newer versions since applications have been removed since 5.4. Even more double clicking is not possible in massupdate, because the JS prevents it. And even 4.4-5.2 seems like this cannot be reproduced. I didn't get any errors. Closing the issue.

            Unassigned Unassigned
            oleg.egorov Oleg Egorov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: