Added new test into MountableFileTest.java
@Test
public void forHostFileOnWindows() throws Exception {
final Path file = createTempFile("somepath");
final MountableFile mountableFile = MountableFile.forHostPath(file.toString());
/* taken from performChecks() */
final String mountablePath = mountableFile.getResolvedPath();
/* fails here */
assertTrue("The resolved path can be found", new File(mountablePath).exists());
}
On Windows resolved path becomes mingw-fied as //c/something/filename.ext and File API does not understand it.
That results in files being copied with null-length i.e. when packing tar archive with files to copy to container. Header for file is created, but content is not written.
What's the idea behind mingw-fying file path?
Added new test into MountableFileTest.java
On Windows resolved path becomes mingw-fied as
//c/something/filename.extand File API does not understand it.That results in files being copied with null-length i.e. when packing tar archive with files to copy to container. Header for file is created, but content is not written.
What's the idea behind mingw-fying file path?