OWASP / OWASP/owasp-java-encoder
Add consumer compatibility CI across supported JDKs and all published JARs
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 541
- Fork
- 122
- Merge medio
- 9h 9m
- PR unite (30g)
- 1
Descrizione
Follow-up to #90 (reviewed at 31588e1). This tracks work intentionally kept separate from the modernization PR.
Why
The checked-in CI builds and tests on JDK 17 only. #90 adds packaged-core OSGi R6 and module-discovery tests, but equivalent coverage for all four artifacts and actual Java 8 runtime compatibility remains incomplete.
The review checked core consumer execution on JDK 11/17/21/25 and Java 8 class-file versions; it did not execute on Java 8. Past issues #79 and #81 demonstrate why compilation and ordinary unit tests alone are insufficient.
Acceptance criteria
- Build artifacts with the supported build JDK, then run separate consumer tests on the supported runtime matrix, including an actual Java 8 runtime. Do not attempt to run the modern build toolchain or incompatible test-app dependencies on Java 8.
- Document runtime support per artifact and use appropriate servlet/JSP/ESAPI dependency versions in each fixture.
- Exercise classpath, explicit JPMS, automatic-module fallback, and legacy/current OSGi consumption where applicable; include real encoding/tag/adapter calls.
- Add artifact-level assertions for all four JARs: automatic module names, explicit descriptors, OSGi identities/imports/exports, multi-release layout, bytecode/API baseline, TLD resources, and absence of test dependencies in published runtime contents.
- Keep consumers isolated from reactor test classpaths so missing packaged classes or dependencies cannot be masked.
- Keep the Docker/Selenium test app on its own compatible JDK/container job and keep failure diagnostics available.
- Coordinate adapter module-path tests with the separate JPMS-readability fix; document known limitations rather than presenting descriptor discovery as successful adapter execution.
Preserve the intentionally different published automatic and explicit module names documented in #90.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo l’issue #90 e revisionando il commit 31588e1, quindi esamina la CI presente nel repository e la copertura esistente dei consumer pacchettizzati. Mappa i quattro JAR pubblicati rispetto alla matrice dei runtime JDK supportati, all’applicazione di test Docker/Selenium e ai controlli elencati per classpath, JPMS, OSGi, bytecode, risorse e dipendenze. Il lavoro è completato quando job consumer isolati coprono i criteri di accettazione e documentano le limitazioni note degli adapter.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- build-system, ci-cd, testing-qa
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100