spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Spring Framework

Results 529 spring-framework issues
Sort by recently updated
recently updated
newest added

Environment: Spring 6.2.0-M1, Java 21 Example project: https://github.com/hantsy/spring6-sandbox/tree/master/test-bean I tried to write a test to experience the new `@MockitoSpyBean`. ```java @SpringJUnitConfig(classes = Config.class) class CustomerServiceMockitoSpyTest { @MockitoSpyBean CustomerService customerService; @Test...

in: test
type: enhancement

I use the "HandlerInterceptor" to set some attributes to "request" at the invocation of each controller and check the URL parameters. I would like to easily exclude this interceptor from...

status: waiting-for-triage
in: web

The decorator now maintains consistency within the transaction and ensures all changes are only committed to the target cache on successful completion of the transaction. - Added complete isolation and...

status: waiting-for-triage
in: data

In `MediaTypeAssert`, we have both `isEqualTo(Object)` and `isEqualTo(String)`, but only `isNotEqualTo(Object)`. The later is inherited from `AbstractAssert`. As a `String` is never equal to a `MediaType`, the following test _appears_...

in: test
type: bug

Description: I'm using springboot3.2.5 and using RestClient.create() I'm getting an instance request header without content-length, which might be an error on some api service requests. But I'll change it to...

status: waiting-for-triage
in: web

Query string parameters with equals in the value throw and exception in build method: ```java @Test public void equals_in_query_string_value() { var str = "https://localhost:8080/callback?param1=a%20b&param2=1=2"; var uri = URI.create(str); var actual...

status: waiting-for-triage
in: web

## Motivation The `RestClient.Builder` has [a method](https://github.com/spring-projects/spring-framework/blob/376d7839e0fb6acf902d33eb578b1df143bcaf0b/spring-web/src/main/java/org/springframework/web/client/RestClient.java#L281) that takes a parameter of type `Consumer` to set the default headers. ```kotlin val defaultHeaders = HttpHeaders().apply { contentType = MediaType.APPLICATION_JSON setBasicAuth("encodedCredentials") }...

status: waiting-for-triage

This PR adds support for varargs invocations where the varargs argument is an array with a component type that is a subtype of the parameter varargs component type. For example,...

in: core
type: enhancement

#32296 and #32112 are now closed but the sample that I was interested in is still broken (see link in the latter): the `RequestContextHolder` is still empty in an `HttpMessageConverter`...

status: waiting-for-triage
in: web

Prevent cookies to be set to empty in the HTTP request if no cookie is present. The `Cookie` header should not be sent if no cookie is set in the...

status: backported
in: web
type: bug