Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Uploading a JAR with dependencies in a sub-directory causes an" Unable to create temporary file" IOException. This occurs in org.apache.flink.client.program.PackagedProgram.extractContainedLibraries()
This because of the line "name = name.replace(File.separatorChar, '_');"
File.separatorChar in windows is the backslash () but files read from a Jar are always in the format of the forward slash . Therefore the slash is never replaced with the '_'. The fix is to remove the File.separatorChar with '/'.
Attachments
Issue Links
- duplicates
-
FLINK-9743 PackagedProgram.extractContainedLibraries fails on Windows
- Closed