Skip to content

Commit 967286a

Browse files
tporebakrosenvold
authored andcommitted
Fix issue 8254: Extensions were incorrectly transferred between Windows client and Linux grid node, because ZipEntry had incorrect name with '\' as separators.
------ Note from Kristian: This patch is is line with section 4.4.17 of the Zip specifications. Heavens knows what that java.util.Zip designers were doing when they did not build this into the library.
1 parent c269a83 commit 967286a

File tree

1 file changed

+1
-1
lines changed
  • java/client/src/org/openqa/selenium/io

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/io/Zip.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void addToZip(String basePath, ZipOutputStream zos, File toAdd) throws I
103103
FileInputStream fis = new FileInputStream(toAdd);
104104
String name = toAdd.getAbsolutePath().substring(basePath.length() + 1);
105105

106-
ZipEntry entry = new ZipEntry(name);
106+
ZipEntry entry = new ZipEntry(name.replace('\\', '/'));
107107
zos.putNextEntry(entry);
108108

109109
int len;

0 commit comments

Comments
 (0)