ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5643

API allow create circular dependencies on Trigger addDependencies()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.4rc1, 2.1.0
    • Component/s: API (A)
    • Labels:

      Description

      API Request:

      [

      {"triggerid":"13527","dependsOnTriggerid":"13528"}

      ,

      {"triggerid":"13528","dependsOnTriggerid":"13527"}

      ]

      Result on image

        Activity

        Hide
        Toms added a comment - - edited

        (1) SQL error if dependency added second time

        Oleg Egorov Issue duplicate in ZBX-3920

        Show
        Toms added a comment - - edited (1) SQL error if dependency added second time Oleg Egorov Issue duplicate in ZBX-3920
        Hide
        Toms added a comment -

        Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-5643

        Show
        Toms added a comment - Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-5643
        Hide
        Eduards Samersovs added a comment - - edited

        (2) SQL error is showen when if not existing trigger is passed. Will be good to fix.
        [

        {"triggerid": "13534", "dependsOnTriggerid": "13535900000000"}

        ]

        "SQL statement execution has failed \"INSERT INTO trigger_depends (triggerid_down,triggerid_up,triggerdepid) VALUES ('135347','13535900000000','41')\"."

        Toms RESOLVED in r30817
        Eduards Samersovs CLOSED

        Show
        Eduards Samersovs added a comment - - edited (2) SQL error is showen when if not existing trigger is passed. Will be good to fix. [ {"triggerid": "13534", "dependsOnTriggerid": "13535900000000"} ] "SQL statement execution has failed \"INSERT INTO trigger_depends (triggerid_down,triggerid_up,triggerdepid) VALUES ('135347','13535900000000','41')\"." Toms RESOLVED in r30817 Eduards Samersovs CLOSED
        Hide
        Eduards Samersovs added a comment -

        Tested!

        Show
        Eduards Samersovs added a comment - Tested!
        Hide
        Toms added a comment -

        Fixed in 2.0.4rc1 r31001, 2.1.0 r31003

        Show
        Toms added a comment - Fixed in 2.0.4rc1 r31001, 2.1.0 r31003

          People

          • Assignee:
            Toms
            Reporter:
            Oleg Egorov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: