Skip to content

Preserve repeated request headers in generated JVM tests - #1979

Open
hoco-scy wants to merge 1 commit into
masterfrom
codex/evomaster-repeat-request-headers
Open

hoco-scy wants to merge 1 commit into
masterfrom
codex/evomaster-repeat-request-headers

Conversation

@hoco-scy

@hoco-scy hoco-scy commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Jersey combines repeated request-header values during search, while generated JVM tests emit separate RestAssured header calls. Depending on the header, this sends separate lines or replaces a value, even when field names differ only in case.

Fix and rationale

For Java/Kotlin, group active header values case-insensitively and emit one comma-separated value in search order (schema values, then fixed authentication values). Existing header filtering and token/cookie paths stay in place. Other output languages are unchanged.

Affected SUTs and trigger

pay-publicapi reproduced a different wire value or order for same-name request headers. A historical isolated check ran three affected methods in four JVM output formats and 20 repetitions per format, with 240 passing executions.

Verification

On master at c45c90e, the local HTTP receiver sees different headers for the search and generated tests. The regression builds and executes actual generated Java/Kotlin JUnit 4 and 5 tests against the same receiver. With the fix, all six header cases and the existing targeted writer tests pass (66 cases, JDK 21).

Split out of #1926; no other split PR is required.

Evidence boundary

The branch compiles and executes Java/Kotlin JUnit 4/5 tests against a local receiver; it preserves the observed search behavior for JVM output, without claiming other clients have identical semantics.

@hoco-scy hoco-scy closed this Dec 1, 2026
@hoco-scy hoco-scy reopened this Dec 3, 2026
@hoco-scy
hoco-scy force-pushed the codex/evomaster-repeat-request-headers branch from d21b2b0 to ec630d5 Compare December 3, 2026 12:26
@hoco-scy
hoco-scy marked this pull request as ready for review December 4, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants