setup-java/__tests__
John Oliver 284c50b083 Address PR review: RFC-compliant Link parsing, SSRF validation, centralized constant
- Make getNextPageUrlFromLinkHeader RFC 8288 compliant by splitting
  link-values and checking for rel=next anywhere in the parameters,
  not just as the first parameter after the semicolon.
- Add validatePaginationUrl utility to reject pagination URLs that
  point to unexpected origins (SSRF mitigation).
- Centralize MAX_PAGINATION_PAGES in util.ts instead of duplicating
  across Adopt, Semeru, and Temurin installers.
- Add tests for rel not being the first parameter, and for URL
  origin validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-04 12:22:15 +00:00
..
cache feat: implement cache-dependency-path option to control caching dependency (#499) 2023-11-22 16:43:14 +01:00
data feat: Add support for .sdkmanrc file in java-version-file parameter (#736) 2025-11-25 13:36:29 -06:00
distributors Move pagination safeguard to non-JetBrains installers 2026-06-03 15:52:24 +00:00
auth.test.ts Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
cache.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
cleanup-java.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
gpg.test.ts Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
toolchains.test.ts Fix XML namespaces wrongly using https 2023-06-28 11:24:07 +02:00
util.test.ts Address PR review: RFC-compliant Link parsing, SSRF validation, centralized constant 2026-06-04 12:22:15 +00:00
verify-java.sh Revert "Revert "Add support for Oracle JDK (#401)" (#421)" (#450) 2023-02-07 16:29:21 +01:00