Repository navigation
Conversation
hoco-scy
force-pushed
the
codex/evomaster-json-request-text
branch
from
December 3, 2026 12:26
ed8abdb to
a309326
Compare
hoco-scy
marked this pull request as ready for review
December 4, 2026 02:47
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.
Problem
The generated HTTP request reformats and pads the JSON text used during search. For example, a searched payload of 741 becomes a string containing a leading and trailing space. Services that bind the body as raw text can therefore receive a different input.
Fix and rationale
Escape the original payload for the target source language instead of parsing, formatting, or padding it just for display. This preserves text, including numeric spelling and line endings, in the generated string payload. Generated DTO paths and response formatting are unchanged.
Affected SUTs and trigger
In an isolated
user-managementcontrol with the role already present,741returned 400 but741was treated as a different role and returned 201.Verification
The new Java and Kotlin writer regressions fail on master at c45c90e (both add spaces around the scalar) and pass with this fix. Focused writer and HTTP result tests passed locally (JDK 21).
Split out of #1926; no other split PR is required.
Evidence boundary
The branch checks emitted Java/Kotlin literals and compiles generated requests to compare actual UTF-8 bytes at a local HTTP receiver. All four focused cases passed locally. Playwright's parsed JSON/DTO path is not a byte-fidelity claim.