Project

General

Profile

Bug #13424

Group of group is empty if we use the AND combinator

Added by Benoît PECCATTE 3 months ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
79

Description

I have a Redhat group and a webserver group.
If I want to create a rehdat webserver group with 2 criteria the resulting group is empty

Associated revisions

Revision 350fba9e (diff)
Added by François ARMAND about 2 months ago

Fixes #13424: Group of group is empty if we use the AND combinator

History

#1 Updated by François ARMAND 2 months ago

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Effort required set to Very Small
  • Priority changed from 0 to 80

We should be at least capable to quickly add a test for it to better know the required effort.

#2 Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 4.3.5 to 4.3.6

#3 Updated by François ARMAND about 2 months ago

  • Assignee set to François ARMAND

#4 Updated by François ARMAND about 2 months ago

  • Status changed from New to In progress

#5 Updated by François ARMAND about 2 months ago

The problem is that the request done looks like:

LDAPObjectType(groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration,Sub,LDAPObjectTypeFilter((objectClass=nodeGroup)),Some((&(nodeGroupId=test-group-node1)(nodeGroupId=test-group-node12))),NodeDnJoin,Set())

The "and" must be on the resulting list of nodes, not on the nodeGroupId.

#6 Updated by François ARMAND about 2 months ago

Also: it's only on intersection of N groups. If you have a group and something else (for ex: a node by hostname), it works (because in that case, as the attribute are not the same, the and is done on nodes)

#7 Updated by François ARMAND about 2 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/2050

#8 Updated by François ARMAND about 2 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ about 2 months ago

  • Tags set to Next minor release
  • Priority changed from 80 to 79

#10 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.6 and 5.0.2 which were released today.
Changelog
Changelog

Also available in: Atom PDF