Actions
User story #4072
closedUser story #4057: Manage properties inside the web interface.
RudderDit in ldap query test is based on wrong DN
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