icingaweb2-module-director icon indicating copy to clipboard operation
icingaweb2-module-director copied to clipboard

User notification States not inherited from Template

Open aflatto opened this issue 7 years ago • 5 comments

When assigning a user with w template , the notification states are not inherited from the template

Expected Behavior

The stares should be listed in the user as "inhertited from <template_name>"

Current Behavior

state field is empty

Steps to Reproduce (for bugs)

  1. define a notification/user template
  2. assign states
  3. define a basic user definition
  4. assign the template

Your Environment

  • Director version (System - About): Master

  • Icinga Web 2 version and modules (System - About): 2.4.1

  • Icinga 2 version (icinga2 --version): 2.6.3

  • Operating System and version: System information: Platform: CentOS Platform version: 6.9 (Final) Kernel: Linux Kernel version: 2.6.32-696.6.3.el6.x86_64 Architecture: x86_64

  • Webserver, PHP versions: Apache/2.2.15 (Unix) PHP 7.1.7

aflatto avatar Aug 30 '17 13:08 aflatto

Related to #1144 ?

lazyfrosch avatar Aug 30 '17 13:08 lazyfrosch

possibly, I have not tested host groups in my hosttemplates.

aflatto avatar Aug 30 '17 13:08 aflatto

The problem affects users and notification templates. The states and transition types are not visibly inherited from the template. In the background the states and transition types from the template will be used (only when no states or transition types are set in the inheriting object).

bargru avatar May 07 '18 14:05 bargru

This issue affects all MultiOptions files. This includes groups for hosts and services, notification states and transition types. Also custom files of type array are affected. The fix for issue #1144 is just a workaround in my opinion. The real problem of the missing inheritance is not solved.

bargru avatar May 11 '18 08:05 bargru

Hey there, icinga2 -version: r2.10.2-1 Director - 1.5.2

also affected and a little bit annoying. I'm not so good at coding but please let me know if I can help in other ways - like testing etc.

Thanks, Ivan

Punkoivan avatar Jan 04 '19 09:01 Punkoivan