Project

General

Profile

Actions

User story #4072

closed

User story #4057: Manage properties inside the web interface.

RudderDit in ldap query test is based on wrong DN

Added by Vincent MEMBRÉ over 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
-
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

We are using DN "cn=rudder-configuration" for base DN for Rudder DIT in TestQueryProcess.scala, which leads to this beautiful stacktrace:


basicQueriesOnOneNodeParameter(com.normation.rudder.services.queries.TestQueryProcessor): A null object was provided where a non-null object is required (non-null index 1).  Thread stack trace:  getStackTrace(Thread.java:1479) / ensureNotNull(Validator.java:119) / <init>(DN.java:243) / dn$lzycompute(InventoryDit.scala:278) / dn(InventoryDit.scala:278) / model(InventoryDit.scala:280) / <init>(RudderDit.scala:149) / <init>(TestQueryProcessor.scala:96) / newInstance0(NativeConstructorAccessorImpl.java) / newInstance(NativeConstructorAccessorImpl.java:39) / newInstance(DelegatingConstructorAccessorImpl.java:27) / newInstance(Constructor.java:513) / createTest(BlockJUnit4ClassRunner.java:195) / runReflectiveCall(BlockJUnit4ClassRunner.java:244) / run(ReflectiveCallable.java:12) / methodBlock(BlockJUnit4ClassRunner.java:241) / runChild(BlockJUnit4ClassRunner.java:70) / runChild(BlockJUnit4ClassRunner.java:50) / run(ParentRunner.java:238) / schedule(ParentRunner.java:63) / runChildren(ParentRunner.java:236) / access$000(ParentRunner.java:53) / evaluate(ParentRunner.java:229) / run(ParentRunner.java:309) / execute(JUnit4TestSet.java:53) / executeTestSet(JUnit4Provider.java:123) / invoke(JUnit4Provider.java:104) / invoke0(NativeMethodAccessorImpl.java) / invoke(NativeMethodAccessorImpl.java:39) / invoke(DelegatingMethodAccessorImpl.java:25) / invoke(Method.java:597) / invokeMethodWithArray(ReflectionUtils.java:164) / invoke(ProviderFactory.java:110) / invokeProvider(SurefireStarter.java:175) / runSuitesInProcessWhenForked(SurefireStarter.java:107) / main(ForkedBooter.java:68)

This due to the new Appconfig branch in the LDAP who tries to bind to the parent of the base DN, and "cn=rudder-configuration" has no parent.

Switching to the same DN that rudder default one ("ou=Rudder, cn=rudder-configuration") make it all work.

Actions #1

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/347
Actions #2

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #4

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.8.0~beta1, which was released today.
Check out:

Actions #5

Updated by Benoît PECCATTE about 9 years ago

  • Tracker changed from Enhancement to User story
Actions

Also available in: Atom PDF