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

Hosts and screens items with similar ids are deleted without specified resourcetype

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.15rc1
    • Fix Version/s: 1.8.15rc1
    • Component/s: Frontend (F)
    • Labels:

      Description

      We have a mistake in the source code:
      include/hosts.inc.php:
      // delete screen items
      DBexecute('DELETE FROM screens_items WHERE '.DBcondition('resourceid',$hostids)).' AND resourcetype='.SCREEN_RESOURCE_HOST_TRIGGERS;

      It calls this query:
      Time:0.000515 SQL: DELETE FROM screens_items WHERE (resourceid IN (89))

      The last round bracket should be after SCREEN_RESOURCE_HOST_TRIGGERS!

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dotneft Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: