Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13107

ServerRunMode.FORKED yields InvalidPathException with relative server config paths on Windows platform

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Pull Request Sent (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.0.0.Dev01
    • Fix Version/s: None
    • Component/s: Test Suite
    • Labels:
      None

      Description

      This looks like regression introduced by ISPN-11914 regarding the file path handling.

      Looks like the fix is to sanitize the relative file path in ForkedInfinispanServerDriver by toURI()).toFile().toString()

      -<![CDATA[java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/rados/git/wildfly/testsuite/integration/clustering/target/test-classes/infinispan.xml
      	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
      	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
      	at java.base/java.nio.file.Path.of(Path.java:147)
      	at java.base/java.nio.file.Paths.get(Paths.java:69)
      	at org.infinispan.server.test.core.ForkedInfinispanServerDriver.start(ForkedInfinispanServerDriver.java:82)
      	at org.infinispan.server.test.core.AbstractInfinispanServerDriver.start(AbstractInfinispanServerDriver.java:142)
      	at org.infinispan.server.test.junit4.InfinispanServerRule$1.evaluate(InfinispanServerRule.java:73)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      ]]>
      

        Attachments

          Activity

            People

            Assignee:
            rhusar Radoslav Husar
            Reporter:
            rhusar Radoslav Husar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: