This is an automated email from the ASF dual-hosted git repository.
jinwoo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 64fe78061d GEODE-10532: Replace getRawStatusCode() with
getStatusCode().value() which will be removed for Srping7. (#7967)
64fe78061d is described below
commit 64fe78061d8fb68a09d3a070f864c431cbbb14ef
Author: kaajaln2 <[email protected]>
AuthorDate: Tue Dec 9 19:53:26 2025 -0500
GEODE-10532: Replace getRawStatusCode() with getStatusCode().value() which
will be removed for Srping7. (#7967)
---
.../geode/management/internal/web/http/support/HttpRequester.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support/HttpRequester.java
b/geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support/HttpRequester.java
index 23a03d2645..6cf172a0b0 100644
---
a/geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support/HttpRequester.java
+++
b/geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support/HttpRequester.java
@@ -110,11 +110,11 @@ public class HttpRequester {
public void handleError(final ClientHttpResponse response) throws
IOException {
String body = IOUtils.toString(response.getBody(),
StandardCharsets.UTF_8);
final String message = String.format("The HTTP request failed with:
%1$d - %2$s.",
- response.getRawStatusCode(), body);
+ response.getStatusCode().value(), body);
- if (response.getRawStatusCode() == 401) {
+ if (response.getStatusCode().value() == 401) {
throw new AuthenticationFailedException(message);
- } else if (response.getRawStatusCode() == 403) {
+ } else if (response.getStatusCode().value() == 403) {
throw new NotAuthorizedException(message);
} else {
throw new RuntimeException(message);