We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bba20f commit 5ddeb04Copy full SHA for 5ddeb04
httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/ScramScheme.java
@@ -293,6 +293,9 @@ public void processChallenge(
293
final String err = attrs.get("e");
294
if (err != null) {
295
this.state = State.FAILED;
296
+ if (err.isEmpty()) {
297
+ throw new MalformedChallengeException("SCRAM server error attribute 'e' is empty");
298
+ }
299
throw new AuthenticationException("SCRAM server error: " + err);
300
}
301
final String vB64 = attrs.get("v");
@@ -675,7 +678,4 @@ public String toString() {
675
678
676
679
677
680
- private static boolean isBlank(final String s) {
- return s == null || s.isEmpty();
- }
681
0 commit comments