Project

General

Profile

Actions

Bug #20984

closed

Two same envvar modulo a space at begining of name leads to LDAP error when saving inventory

Added by Nicolas CHARLES about 2 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

There's a windows inventory that systematicall trigger ldap error
Symptome is

ERROR inventory-processing - Error when trying to process report: Can't merge inventory report in LDAP directory, aborting; cause was: Exception when commiting inventory, abort.; cause was: BackendException: Error when doing action 'adds' with and LDIF change request: null; cause was: com.unboundid.ldap.sdk.LDAPException: no such object
 -> com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyAdds$2(LDAPConnection.scala:562)
 -> com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyMod$1(LDAPConnection.scala:514) ;you probably need to increase value ldap.maxPoolSize property in configuration file, please check the documentation - see https://docs.rudder.io/reference/7.0/administration/performance.html#_ldap_configuration

the Machine part is saved, but not the nodes part

Preventing from saving the Environment make it works, preventing from saving software and/or FS and/or Networks makes it fails with an error about missing localAdministratorName when saving processes (most likely because there aren't any processes on windows)

Fails both in 6.2 & 7.0

Test correction

- create two identical env var appart from a leading space on a node
- rudder agent inventory
- check that inventory contains both env var
- check that inventory is accepted by server

Actions #1

Updated by Vincent MEMBRÉ about 2 years ago

This is because a environment variable was defined twice "XXX" and " XXX" but we trim all entries from our inventories and we end up with an inventory with two times the same variable

The ldap request to insert this node entry then fails because it provides to time the same attribute with the same value, which is impossible but this fails silently

The saving process then continue to a children entry, but since the parent was not created, the request fails

Actions #2

Updated by François ARMAND about 2 years ago

  • Subject changed from LDAP error when saving inventory to Two same envvar modulo a space at begining of name leads to LDAP error when saving inventory
Actions #3

Updated by François ARMAND about 2 years ago

  • Target version changed from 6.2.14 to 6.1.20
Actions #4

Updated by François ARMAND about 2 years ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #5

Updated by François ARMAND about 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/4235
Actions #6

Updated by François ARMAND about 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by François ARMAND almost 2 years ago

  • Description updated (diff)
Actions #8

Updated by Vincent MEMBRÉ almost 2 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF