-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove APIs deprecated for removal in 6.1 #29449
Comments
This is the first commit that removes deprecated APIs. Subsequent commits will remove additional deprecated APIs. See gh-29449
How should we handle interactions with servers that return non-standard HTTP status codes? Previously, getRawStatusCode() was a reliable way to retrieve the raw status code without failing. However, now getStatusCode() throws an exception if the response contains an unknown status code, making it problematic when dealing with less strict servers. What’s the recommended approach to handle this scenario in Spring 6+? |
@GregTreat Have you tried applying the advice in the deprecation notice? Using |
@bclozel Maybe I missed advice in the deprecation notice. Can you please point me. |
@bclozel Oh, sorry! It looks like I wasn't up to date. In version 6.x, the failures no longer occur. |
It's in the Javadoc: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/client/ClientHttpResponse.html#getRawStatusCode() |
Remove APIs that have been "deprecated for removal in 6.1".
Candidates
org.springframework.util.Assert
org.springframework.core.task.support.ConcurrentExecutorAdapter
org.springframework.test.web.reactive.server.ExchangeResult.getRawStatusCode()
org.springframework.http.HttpMethod.resolve(String)
org.springframework.http.HttpRequest.getMethodValue()
org.springframework.http.client.HttpComponentsClientHttpRequestFactory.setReadTimeout(int)
org.springframework.http.client.reactive.ClientHttpResponse.getRawStatusCode()
org.springframework.jdbc.datasource.init.ScriptUtils
org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.reactive.function.client.ClientResponse.rawStatusCode()
The text was updated successfully, but these errors were encountered: