Project

General

Profile

Actions

Bug #19186

closed

Webapp tests fail if repository path contains an '@'

Added by Alexis Mousset over 3 years ago. Updated over 3 years ago.

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

Description

The '@' of the path is replaced by '%40' and two tests fail.

Running com.normation.ldap.sdk.schema.SchemaTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.89 sec
Running com.normation.ldap.sdk.LoadDemoDataTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.08 sec <<< FAILURE!
initializationError(com.normation.ldap.sdk.LoadDemoDataTest)  Time elapsed: 0.013 sec  <<< ERROR!
org.specs2.control.UserException: cannot create an instance for class com.normation.ldap.sdk.LoadDemoDataTest
    at org.specs2.reflect.Classes.newInstance(Classes.scala:98)
    at org.specs2.reflect.Classes.createInstanceForConstructor(Classes.scala:74)
    at org.specs2.reflect.Classes.findInstance(Classes.scala:58)
    at org.specs2.reflect.Classes.createInstanceFromClass(Classes.scala:38)
    at org.specs2.reflect.Classes.createInstanceFromClass$(Classes.scala:37)
    at org.specs2.reflect.Classes$.createInstanceFromClass(Classes.scala:122)
    at org.specs2.reflect.Classes.$anonfun$createInstance$2(Classes.scala:31)
    at org.specs2.control.eff.Arrs.go$1(Eff.scala:386)
    at org.specs2.control.eff.Arrs.apply(Eff.scala:399)
    at org.specs2.control.eff.IntoPolyLower2$$anon$3.$anonfun$apply$8(IntoPoly.scala:60)
    at org.specs2.control.eff.Arrs.go$1(Eff.scala:383)
    at org.specs2.control.eff.Arrs.apply(Eff.scala:399)
    at org.specs2.control.eff.Arrs.apply(Eff.scala:348)
    at org.specs2.control.eff.CollectedUnions.$anonfun$continuation$1(Unions.scala:84)
    at org.specs2.control.eff.Arrs.go$1(Eff.scala:383)
    at org.specs2.control.eff.Arrs.apply(Eff.scala:399)
    at org.specs2.control.eff.Interpret$$anon$1.$anonfun$onEffect$1(Interpret.scala:53)
    at org.specs2.fp.EitherOps$.bimap$extension(EitherSyntax.scala:82)
    at org.specs2.control.eff.Interpret$$anon$1.onEffect(Interpret.scala:53)
    at org.specs2.control.eff.Interpret$$anon$1.onApplicativeEffect(Interpret.scala:61)
    at org.specs2.control.eff.Interpret$$anon$1.onApplicativeEffect(Interpret.scala:45)
    at org.specs2.control.eff.Interpret.go$1(Interpret.scala:200)
    at org.specs2.control.eff.Interpret.interpretLoop(Interpret.scala:207)
    at org.specs2.control.eff.Interpret.interpretLoop$(Interpret.scala:142)
    at org.specs2.control.eff.Interpret$.interpretLoop(Interpret.scala:635)
    at org.specs2.control.eff.Interpret.interpret(Interpret.scala:71)
    at org.specs2.control.eff.Interpret.interpret$(Interpret.scala:44)
    at org.specs2.control.eff.Interpret$.interpret(Interpret.scala:635)
    at org.specs2.control.eff.Interpret.interpret1(Interpret.scala:78)
    at org.specs2.control.eff.Interpret.interpret1$(Interpret.scala:77)
    at org.specs2.control.eff.Interpret$.interpret1(Interpret.scala:635)
    at org.specs2.control.eff.ErrorInterpretation.runError(ErrorEffect.scala:87)
    at org.specs2.control.eff.ErrorInterpretation.runError$(ErrorEffect.scala:68)
    at org.specs2.control.eff.ErrorEffect$.runError(ErrorEffect.scala:187)
    at org.specs2.control.eff.syntax.error$ErrorEffectOps.runError(error.scala:14)
    at org.specs2.control.ExecuteActions.attemptExecuteAction(ExecuteActions.scala:59)
    at org.specs2.control.ExecuteActions.attemptExecuteAction$(ExecuteActions.scala:56)
    at org.specs2.control.ExecuteActions$.attemptExecuteAction(ExecuteActions.scala:93)
    at org.specs2.control.ExecuteActions.runAction(ExecuteActions.scala:52)
    at org.specs2.control.ExecuteActions.runAction$(ExecuteActions.scala:51)
    at org.specs2.control.ExecuteActions$.runAction(ExecuteActions.scala:93)
    at org.specs2.runner.JUnitRunner.specification$lzycompute(JUnitRunner.scala:25)
    at org.specs2.runner.JUnitRunner.specification(JUnitRunner.scala:23)
    at org.specs2.runner.JUnitRunner.specStructure$lzycompute(JUnitRunner.scala:48)
    at org.specs2.runner.JUnitRunner.specStructure(JUnitRunner.scala:47)
    at org.specs2.runner.JUnitRunner.getDescription(JUnitRunner.scala:43)
    at org.specs2.runner.JUnitRunner.getDescription$lzycompute(JUnitRunner.scala:40)
    at org.specs2.runner.JUnitRunner.getDescription(JUnitRunner.scala:39)
    at org.junit.runners.model.RunnerBuilder.configureRunner(RunnerBuilder.java:81)
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:72)
    at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
    at org.junit.internal.requests.ClassRequest.createRunner(ClassRequest.java:28)
    at org.junit.internal.requests.MemoizingRequest.getRunner(MemoizingRequest.java:19)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:250)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at org.specs2.reflect.Classes.$anonfun$createInstanceForConstructor$1(Classes.scala:74)
    at org.specs2.reflect.Classes.newInstance(Classes.scala:96)
    ... 65 more
Caused by: java.io.FileNotFoundException: /home/amousset/projects/rud%40der/webapp/sources/scala-ldap/target/test-classes/ldap-data/bootstrap.ldif (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
    at com.unboundid.ldif.LDIFReader.<init>(LDIFReader.java:295)
    at com.normation.ldap.sdk.LoadDemoDataTest.$anonfun$numEntries$1(LoadDemoDataTest.scala:73)
    at com.normation.ldap.sdk.LoadDemoDataTest.$anonfun$numEntries$1$adapted(LoadDemoDataTest.scala:72)
    at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:168)
    at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:164)
    at scala.collection.immutable.List.foldLeft(List.scala:79)
    at com.normation.ldap.sdk.LoadDemoDataTest.<init>(LoadDemoDataTest.scala:72)
    ... 71 more


Related issues 1 (0 open1 closed)

Related to OpenSCAP - Bug #25193: OpenSCAP test fails when there is a '@' '%40' in pathReleasedAlexis MoussetActions
Actions #1

Updated by François ARMAND over 3 years ago

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

Updated by François ARMAND over 3 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/3602
Actions #3

Updated by François ARMAND over 3 years ago

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

Updated by Alexis Mousset over 3 years ago

  • Fix check changed from To do to Checked
Actions #5

Updated by Vincent MEMBRÉ over 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.13 and 6.2.7 which were released today.

Actions #6

Updated by François ARMAND 5 months ago

  • Related to Bug #25193: OpenSCAP test fails when there is a '@' '%40' in path added
Actions

Also available in: Atom PDF