Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: EMPTY #325

Closed
moreamazingnick opened this issue Apr 5, 2022 · 3 comments · Fixed by #326
Closed

Undefined index: EMPTY #325

moreamazingnick opened this issue Apr 5, 2022 · 3 comments · Fixed by #326
Labels
bug Something isn't working
Milestone

Comments

@moreamazingnick
Copy link
Contributor

Describe the bug

ErrorException in /usr/share/icingaweb2/modules/businessprocess/library/Businessprocess/BpNode.php:88 with message: Undefined index: EMPTY

To Reproduce

Create a Business Process Dummy without Nodes

Fix

    protected static $emptyStateSummary = array(
     ...
        'EMPTY'               => 0,
     ...
    );
  • Icinga Web 2 version and modules (System - About): 2.10
  • Web browser used:. Chrome
  • Icinga 2 version used (icinga2 --version): 2.13.1
  • PHP version used (php --version): 7.4
  • Server operating system and version: Ubuntu 20.04
  • business process 2.4.0

Additional context

Add any other context about the problem here.

@nilmerg
Copy link
Member

nilmerg commented Apr 5, 2022

Works fine for me without your change. Please give more detailed steps to reproduce this, or even an example configuration.

Screenshot from 2022-04-05 17-01-03 Screenshot from 2022-04-05 17-01-11 Screenshot from 2022-04-05 17-01-19

@nilmerg nilmerg added the needs-feedback We'll only proceed once we hear from you again label Apr 5, 2022
@moreamazingnick
Copy link
Contributor Author

i hope that helps:
we have this config /etc/icingaweb2/modules/businessprocess/processes/Security.conf

### Business Process Config File ###
#
# Title           : Security
# Description     :
# Owner           : admin
# AddToMenu       : yes
# Backend         :
# Statetype       : soft
#
###################################

Customers =
display 0;Customers;Customers

Employees =
display 0;Employees;Employees

IT-Administration =
display 0;IT-Administration;IT-Administration

Authentication = Customers & Employees & IT-Administration
display 1;Authentication;Authentication

With the last module there was the message:
There are 4 missing nodes: Customers, Businessprocesses-Master;Hoststatus, Employees, IT-Administration

but now without the patch we get:
[Error]
Undefined index: EMPTY

@nilmerg
Copy link
Member

nilmerg commented Apr 6, 2022

Successfully reproduced it, thanks.

@nilmerg nilmerg added bug Something isn't working and removed needs-feedback We'll only proceed once we hear from you again labels Apr 6, 2022
@nilmerg nilmerg added this to the 2.5.0 milestone Apr 6, 2022
@nilmerg nilmerg pinned this issue Jul 22, 2022
@flourish86 flourish86 unpinned this issue Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants