Skip to content

Investigate flaky/failing HttpDslTests.testHttpProxyFlow() #11235

Description

@artembilan

testHttpProxyFlow() currently fails:

java.lang.AssertionError: Response content expected:<FOO> but was:<Error>
	at org.springframework.integration.http.dsl.HttpDslTests.testHttpProxyFlow(HttpDslTests.java:139)

with this warning in stdout:

Resolved [org.springframework.http.converter.HttpMessageNotReadableException: No multipart boundary found in Content-Type: "application/x-www-form-urlencoded"]

The test wires a mocked ClientHttpRequestFactory into HttpRequestExecutingMessageHandler by reflectively pulling it out of RestTestClient (TestUtils.getPropertyValue(restTestClient, "restClient.clientRequestFactory")), then re-issues the proxied request through MockMvc. The multipart-boundary warning suggests the proxied outbound request is no longer built the way the internal gateway expects — possibly due to an internal RestTestClient/RestClient structural change in a recent Spring Framework version breaking the reflective field path, rather than an actual bug in HttpRequestExecutingMessageHandler itself.

Disabled for now (see commit disabling it) to keep the build green; needs a proper investigation into the actual request being proxied and why it now round-trips as Error instead of FOO.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions