Affects: \<5.2.6>

spring-webflux. The class org.springframework.web.reactive.function.server.DefaultServerRequestBuilder does not respect attributes when building the org.springframework.web.reactive.function.server.ServerRequest. When you use ServerRequest.from(initialRequest) .attribute("somename", "somevalue") .build(); - the resulting ServerRequest does not have the attribute specified. Could be easily tracked by source code


Comment From: sbrannen

Indeed, the attributes are not available in the ServerWebExchange that backs the request.

Thanks for pointing this out.

Comment From: sbrannen

This has been fixed in 5.1.16, 5.2.7, and 5.3 M1.

Feel free to try it out in the latest snapshots for those branches.