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

getting permission error while creating an action

    XMLWordPrintable

Details

    • Incident report
    • Resolution: Fixed
    • Major
    • None
    • 1.8.8
    • API (A)
    • SLES 11 SP1

    Description

      While trying to create an action on a trigger getting

      Response: {"jsonrpc"=>"2.0", "error"=>

      {"code"=>-32500, "message"=>"Application error.", "data"=>"[ CAction::create ] No permissions !"}

      , "id"=>66484}

      error, unless the user is super admin.

      This happens because of an error in check_permission_for_action_conditions function in the frontends/php/include/actions.inc.php file. The check says "switch($ac_data['type'])" there, but the right name for this param according to api description and the rest of the source is "conditiontype".

      The workaroud is to set both "type" and "conditiontype" vars to contain the same value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergey Sergey Alexandrov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: