[ZBX-12646] Incorrect query in Frontend ( Availability report ) Created: 2017 Aug 31  Updated: 2024 Apr 10  Resolved: 2017 Sep 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.2.7, 3.4.1
Fix Version/s: 3.2.8rc1, 3.4.2rc1, 4.0.0alpha1, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Dmitrijs Lamberts Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team B
Team: Team B
Sprint: Sprint 15, Sprint 16
Story Points: 0.5

 Description   

When making availability report using Host mode and filtering by specific host group, query is selecting all nested Host groups that has nothing to do with filtered one.

Example scenario:
Create Host group - Test group ( with host "1" inside it )
Create Host group - Nested/nested1 ( with host "2" inside it )
Create Host group - 1_Nested/1_nested1 ( with host "3" inside it )

Open Reports -> Availability report page.
Query from debug:

SQL (0.000292): SELECT g.groupid,g.name FROM groups g WHERE (g.name IN ('Nested','Nested/1_Nested'))
report2.php:434 ? CFrontendApiWrapper->get() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CHostGroup->get() ? DBselect() in include/classes/api/services/CHostGroup.php:318


 Comments   
Comment by Alexander Vladishev [ 2017 Aug 31 ]

Fixed in dev branch svn://svn.zabbix.com/branches/dev/ZBX-12646

Comment by Ivo Kurzemnieks [ 2017 Sep 01 ]

(1) No translation string changes.

sasha CLOSED

Comment by Alexander Vladishev [ 2017 Sep 05 ]

Fixed in:

  • 3.2.8rc1 r72171
  • 3.4.2rc1 r72172
  • 4.0.0alpha1 r72173
Generated at Fri Apr 19 16:22:03 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.