[ZBX-12837] Zabbix Admin can't use media types in Action operations Created: 2017 Oct 06  Updated: 2024 Apr 10  Resolved: 2018 Jan 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.4.2
Fix Version/s: 3.4.4rc1, 4.0.0alpha1, 4.0 (plan)

Type: Problem report Priority: Major
Reporter: CHRETIEN Landry Assignee: Gregory Chalenko
Resolution: Fixed Votes: 1
Labels: adminuser, mediatypes, operations
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Capture.PNG     PNG File Capture1.PNG    
Team: Team B
Sprint: Sprint 18, Sprint 19, Sprint 24
Story Points: 0.25

 Description   

Hello,

After a migration from 2.4.8 to 3.4.2, 'Zabbix Admin' user profile are not able to change the media type of existing or newly created action.

After a selection of an action, when changing the media type, this error appear :
Incorrect value for field "mediatypeid": No permissions to referred object or it does not exist!.

No problem with a SuperAdmin user.

I tried to create a new media type, but same problem.



 Comments   
Comment by CHRETIEN Landry [ 2017 Oct 09 ]

Hello,

In order to complete, this problem can be reproduce :

  • Load a DB with a 2.4 schemas
  • Install a 3.4 server version
  • Wait untill the upgrade process is ended
  • Create a test usergroup and user with zabbix admin profile
  • Create a host/Hostgroup and set permission to R/W on it to the previously created Hostgroup.
    Try to create an action with this hostgroup in condition and 'send message' action via 'Email' channel.

You will have the problem shown.

Regards,

Comment by CHRETIEN Landry [ 2017 Oct 09 ]

An other test :

  • Load the provided sql schemas from the Zabbix RPM (so directly in 3.4 schemas)
  • Play the same action described bellow
  • Problem appear

So, it's don't seems related the to upgrade process.

Comment by CHRETIEN Landry [ 2017 Oct 13 ]

Hello,

Could you please provide a feed back ?

Could you confirm that it could a bug ?

Many thanks

Comment by Valdis Murzins [ 2017 Oct 13 ]

Thank you for your report.
I am confirming that the following bug is present in 3.4.2:

Steps to reproduce:
1. Login as Zabbix Admin user
2. Open Configuration->Actions->Create Action
3. In Operations tab press 'New' for new operation
4. Select recipient (mandatory field)
5. Select 'Send only to' as 'Email'
6. Press 'Add' for this operation
Result: Error message Incorrect value for field "mediatypeid": No permissions to referred object or it does not exist!.
Expected: Operation is added for the action

Comment by Valdis Murzins [ 2017 Oct 13 ]

(1) No translation string changes.

vmurzins CLOSED

Comment by CHRETIEN Landry [ 2017 Oct 16 ]

Hello,

Thank you for your reactivity,
As I can see, test are in progress, in witch delay should this bugfix be released ?
We have a migration planned before week 46, any release date would be appreciated.

Regards,

Comment by Valdis Murzins [ 2017 Oct 16 ]

Hello landry41,

This issue will be fixed in version 3.4.4.
It probably will be released around beginning of November. Looks like it will be before your migration.

Also I want to note that currently it is still possible to set media types in action operations by Zabbix Super Admin user.

Regards,

Comment by Gregory Chalenko [ 2017 Oct 25 ]

Fixed in:

  • 3.4.4rc1 r73879
  • 4.0.0alpha1 trunk r73881
Comment by Ivo Kurzemnieks [ 2018 Jan 03 ]

(3) [D] Two API methods have changed, but nothing about this is mentioned in API docs.

gcalenko Updated API changes page rev1514990082

RESOLVED

iivs The message was almost identical, so I wrote that in one line.

CLOSED

Generated at Wed Apr 24 00:17:28 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.