Skip to content

feat: add maxFieldValueLength guard for large field values#15

Merged
boloagegit merged 1 commit into
mainfrom
feat/max-field-value-length
May 22, 2026
Merged

feat: add maxFieldValueLength guard for large field values#15
boloagegit merged 1 commit into
mainfrom
feat/max-field-value-length

Conversation

@boloagegit
Copy link
Copy Markdown
Owner

Summary

  • Add configurable echo.matcher.max-field-value-length (default 2MB) to skip matching when a field value is too large (e.g. base64 images)
  • Increase Undertow max-http-post-size to 10MB to allow large request bodies
  • Add unit tests covering JSON/JsonPath/XML/XPath paths

Changes

  • ConditionMatcher.java: new maxFieldValueLength field with length check in 4 match methods
  • application.yml: add server.undertow.max-http-post-size and echo.matcher.max-field-value-length
  • ConditionMatcherExtendedTest.java: 5 new test cases

… field values (e.g. base64 images)

- Add configurable echo.matcher.max-field-value-length (default 2MB)
- Skip matchValue when field value exceeds threshold in JSON/JsonPath/XML/XPath paths
- Increase Undertow max-http-post-size to 10MB for large request bodies
- Add unit tests for field value length guard
@github-actions github-actions Bot added enhancement New feature or request java Pull requests that update java code Back End Issues or pull requests related to back-end / Java code labels May 22, 2026
@boloagegit boloagegit merged commit c775ae6 into main May 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Back End Issues or pull requests related to back-end / Java code enhancement New feature or request java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant