Skip to content

fix(vespera-bridge): keep unframed form bodies empty; reject padded plugin triples - #649

Merged
owjs3901 merged 1 commit into
mainfrom
fix/java-round63
Nov 30, 2026
Merged

owjs3901 merged 1 commit into
mainfrom
fix/java-round63

Conversation

@owjs3901

Copy link
Copy Markdown
Contributor

Round 63 Java findings

Fixed

  • R63-J5-L1 (LOW), form body rebuilt from injected parameters. An HTTP/1.x request with neither Content-Length nor Transfer-Encoding has no body (RFC 9112 6.3). An empty body was rebuilt from filter-injected parameters such as role=admin. Servlet: FormBodySupport.recoverConsumedBody now recovers an undeclared-length body only when the stream was drained before the read and the request is not framed-bodyless. The chunked, drained case still rebuilds. WebFlux twin ReactiveFormBodySupport: an unframed request is not rebuilt from getFormData(). Tests: FormBodySupportTest (two new cases), ReactiveFormBodyTest (reactor-netty E2E with an injecting decorator). Both fail with the guards removed; verified.
  • R63-JAVA1-L1 (LOW), padded target triple accepted. NativePlatform.plannedBuilds accepted " aarch64-unknown-linux-gnu", because the arch and OS checks read only the leading segment. It reached cargo --target and failed as an unknown target. The triple must now be non-empty and equal to its trim, and the error names the key. Test: aTripleWithSurroundingWhitespaceIsRejectedNamingTheKey (fails without the guard).

Refuted

  • R63-J4-L1 (LOW), idle worker not signalled when a thread start fails. Refuted. The spawn branch runs only when queue.size() > idle + starting. Every parked idle worker is then already signalled for an earlier queued task, so none is left parked. The queued task waits for a busy or already-signalled worker, not for a keep-alive. Added aFailedStartWhileAnIdleWorkerIsParkedStillRunsEveryQueuedTask as a pin; it passes on the unchanged executor.

Changepack: .changepacks/changepack_log_java_round63.json (Patch, all 7 packages). Verified: libs/vespera-bridge ./gradlew clean test and libs/vespera-bridge-gradle-plugin ./gradlew test both pass (JDK 17, --no-daemon).

🤖 Generated with Claude Code

…lugin triples

- FormBodySupport / ReactiveFormBodySupport: an empty form body with no
  Content-Length and no Transfer-Encoding on an HTTP/1.x request has no body.
  Filter-injected parameters are no longer rebuilt into it. The servlet side
  also requires the stream to have been drained before the read, as the
  multipart path does. A filter-drained chunked body is still rebuilt.
- NativePlatform (gradle plugin): a vespera.targets triple with surrounding
  whitespace is rejected naming the key, instead of reaching cargo --target.
- Executor thread-start failure while an idle worker is parked: refuted (the
  parked worker is already signalled for the earlier queued task). A pin test
  covers it.
- Changepack: .changepacks/changepack_log_java_round63.json (Patch, all 7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@owjs3901
owjs3901 merged commit 7516e65 into main Nov 30, 2026
26 of 27 checks passed
@owjs3901
owjs3901 deleted the fix/java-round63 branch November 30, 2026 10:28
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.

1 participant