Skip to content

Improve the checks for relative traversal.#158

Open
LQxdu wants to merge 1 commit intozeroturnaround:masterfrom
LQxdu:master
Open

Improve the checks for relative traversal.#158
LQxdu wants to merge 1 commit intozeroturnaround:masterfrom
LQxdu:master

Conversation

@LQxdu
Copy link
Copy Markdown

@LQxdu LQxdu commented Oct 17, 2024

Use java.nio.file.Path for consistent sub-directory checking

Use java.nio.file.Path for consistent sub-directory checking
@nemecec
Copy link
Copy Markdown
Collaborator

nemecec commented Oct 17, 2024

Currently, zt-zip is compatible with Java 6. This patch uses Java 7 API. We have to ponder whether it is time to bump the minimum Java requirement from Java 6 to Java 8.

@LQxdu
Copy link
Copy Markdown
Author

LQxdu commented Oct 17, 2024

Based on recent statistical research, such as reports from InfoWorld and New Relic, Java 8, 11, and 17 are the most widely used versions, while the number of users still relying on Java 6 and 7 has significantly decreased. For instance, according to the New Relic report, only 0.28% of applications are still using Java 7 in production.

Therefore, I believe it is worth considering raising the minimum Java requirement from Java 6 to Java 8.

@josephks
Copy link
Copy Markdown

josephks commented May 7, 2025

Java 8 itself is long EOL but you are holding up this fix for Java 6 compatibility?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants