SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
29.77k stars 8.02k forks source link

[🐛 Bug]: selenium-server-standalone-2.53.0.jar fails to extract on Windows using Java 21 jar.exe #14202

Closed chuckdumont closed 5 days ago

chuckdumont commented 6 days ago

What happened?

When running jar --extract to extract the contents of selenium-server-standalone-2.53.0.jar on Windows, it fails because the META-INF folder contains both a LICENSE file and a license folder. This results in a name collision on Windows systems. Older versions of Java would just silently overwrite the duplicate files/folders, but recent versions of Java (not sure when this change was introduced but it fails with JDK21) fail instead.

This problem causes all kinds of issues. For me it shows up in Eclipse as project build errors for projects that have a dependency on this file.

Please update selenium-server-standalone-2.53.0.jar to avoid the name collision.

How can we reproduce the issue?

On a Windows system using JDK21 or above, run `jar --extract --file selenium-server-standalone-2.53.0.jar`.

Relevant log output

N/A

Operating System

Windows 11

Selenium version

N/A

What are the browser(s) and version(s) where you see this issue?

N/A

What are the browser driver(s) and version(s) where you see this issue?

N/A

Are you using Selenium Grid?

No

github-actions[bot] commented 6 days ago

@chuckdumont, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

diemol commented 5 days ago

That version of Selenium is old and never meant to work flawlessly with Java 21. We don't go back and fix old versions, so I recommend unpacking it with an earlier version of Java.