Skip to content

fix(webapps-neo): resolve MyBatis XML entities offline - #3902

Merged
javahippie merged 1 commit into
mainfrom
codex/neo-xml-offline-dtd
Oct 22, 2026
Merged

javahippie merged 1 commit into
mainfrom
codex/neo-xml-offline-dtd

Conversation

@hauptmedia

Copy link
Copy Markdown
Collaborator

Summary

QuerySessionFactoryTest parses a generated MyBatis configuration with a plain JAXP document builder. Resolving its external DTD can fail when the MyBatis host is unavailable, even though the generated configuration is correct.

Configure the test parser with MyBatis' XMLMapperEntityResolver so it resolves the DTD from the bundled resource. The two-line change affects only test setup and preserves the existing assertions.

This PR covers the network-dependent Neo XML test extracted from #3820.

Validation

@github-actions github-actions Bot added lang:java Pull requests that update Java code scope:tests Changes affecting only test code labels Oct 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

@javahippie javahippie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@javahippie
javahippie merged commit 119a66a into main Oct 22, 2026
15 checks passed
@kthoms kthoms added this to the 2.2.0 milestone Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang:java Pull requests that update Java code scope:tests Changes affecting only test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants