Fix JPMS dependency reads in adapter modules - #98
Open
jmanico wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The descriptors, consumer tests, Maven configuration, and documentation consistently address the reported JPMS linkage failures.
Pull request overview
Fixes JPMS readability for all optional adapters and verifies named-module consumers.
Changes:
- Adds transitive API dependencies to adapter module descriptors.
- Adds isolated compile-and-launch integration tests.
- Documents module names, coordinates, and filename constraints.
File summaries
| File | Description |
|---|---|
src/test-support/java/org/owasp/encoder/testing/ModulePathIT.java |
Adds shared JPMS integration harness. |
README.md |
Documents adapter module dependencies. |
jsp/src/test/modules/owasp.encoder.jsp.consumer/org/owasp/encoder/consumer/JspConsumer.java |
Exercises the JSP adapter. |
jsp/src/test/modules/owasp.encoder.jsp.consumer/module-info.java |
Defines the JSP test consumer. |
jsp/src/main/java9/module-info.java |
Adds transitive JSP API readability. |
jsp/pom.xml |
Configures the JSP integration test. |
jakarta/src/test/modules/owasp.encoder.jakarta.consumer/org/owasp/encoder/consumer/JakartaConsumer.java |
Exercises the Jakarta adapter. |
jakarta/src/test/modules/owasp.encoder.jakarta.consumer/module-info.java |
Defines the Jakarta test consumer. |
jakarta/src/main/java9/module-info.java |
Adds transitive Jakarta JSP readability. |
jakarta/pom.xml |
Configures the Jakarta integration test. |
esapi/src/test/modules/owasp.encoder.esapi.consumer/org/owasp/encoder/consumer/EsapiConsumer.java |
Exercises real ESAPI encoding. |
esapi/src/test/modules/owasp.encoder.esapi.consumer/module-info.java |
Defines the ESAPI test consumer. |
esapi/src/main/java9/module-info.java |
Adds transitive ESAPI readability. |
esapi/pom.xml |
Configures the ESAPI integration test. |
Review details
- Files reviewed: 14/14 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this issue
Of the open modernization issues (#91-#97), #92 is the highest priority because it is a shipped runtime correctness bug affecting all three optional adapter artifacts. The other issues improve maintenance, release infrastructure, or future compatibility; this one can prevent valid named-module consumers from compiling or linking today.
What changed
requires transitiveowasp.encoder.jsp->javax.servlet.jsp.apiowasp.encoder.jakarta->jakarta.servlet.jspowasp.encoder.esapi->esapi--add-readsor--add-opensValidation
mvn -B -ntp clean verify(1,150 tests, no failures/errors/skips)The three javac warnings about transitive automatic modules are expected: the upstream JSP and ESAPI API artifacts are automatic modules, and the README now documents their required filenames.
Fixes #92