Icingaweb2: Hostgroups "AND" filter stopped working with 2.7.0

Created on 13 Aug 2019  Â·  6Comments  Â·  Source: Icinga/icingaweb2

Describe the bug

After upgrading to Icinga Web 2 version 2.7.0 OR filter with hostgroup fields stopped to work

To Reproduce

  1. Create hostgroup contains word "foo" in name (not in Display name)
  2. Create hostgroup contains word "bar" in name (not in Display name)
  3. Create hostgroup filter Hostgroup = *foo* OR Hostgroup = *bar* (in the URL it would be hostgroup=*foo*|hostgroup=*bar*).

Expected behavior

Both hostgroups contains "foo" and "bar" should appear in search list

Your Environment

  • Icinga Web 2 Version 2.7.0
  • PHP Version 7.1.8
  • director 1.6.0
  • doc 2.7.0
  • grafana 1.3.4
  • incubator v0.1.1
  • ipl v0.1.1
  • monitoring 2.7.0
  • reactbundle v0.4.1
  • translation 2.7.0
  • vspheredb 1.0.3
  • x509 1.0.0
  • Web browser used: Google Chrome latest
  • Icinga 2 version used (icinga2 --version): r2.10.5-1
  • PHP version used (php --version): 7.1.8
  • Server operating system and version: RHEL 7
areframework bug

Most helpful comment

@lippserd
Just tested PR - it works for me for both OR/AND with/without negations.

All 6 comments

Hi, thanks for reporting this. But it's a known (#3886) and fixed (#3903) issue.

@nilmerg
The fix doesn't works for me with filter Hostgroup != *foo* AND Hostgroup != *bar* AND Hostgroup != *qwe*

Yes, you're right. Thanks for the feedback. We're working on it. :+1:

Hi @nE0sIghT,

Thanks for reporting the issue. Do you have any chance to test the related PR?

Best,
Eric

Sure. I can test it tomorrow.

вт, 13 авг. 2019 г., 19:21 Eric Lippmann notifications@github.com:

Hi @nE0sIghT https://github.com/nE0sIghT,

Thanks for reporting the issue. Do you have any chance to test the related
PR?

Best,
Eric

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Icinga/icingaweb2/issues/3916?email_source=notifications&email_token=AAZ3RER63FGXUEHXGK5GYQLQELGOPA5CNFSM4ILKDHZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4GAIHI#issuecomment-520881181,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZ3RESKQU3JFWB4NW6II3TQELGOPANCNFSM4ILKDHZA
.

@lippserd
Just tested PR - it works for me for both OR/AND with/without negations.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theFeu picture theFeu  Â·  6Comments

icinga-migration picture icinga-migration  Â·  6Comments

fireba11 picture fireba11  Â·  8Comments

bobapple picture bobapple  Â·  7Comments

jschoone picture jschoone  Â·  7Comments