KEYCLOAK-2479 Avoid ZIPException during bigger load

This commit is contained in:
mposolda committed 2016-02-18 19:28:20 +01:00
1 parent caec65c576
commit 0f21b6f6d9
2 files changed
+10 -1

No files matched your search

@@ -49,7 +49,8 @@ public class Base64Url {
"Illegal base64url string!");
}
try {
return Base64.decode(s);
// KEYCLOAK-2479 : Avoid to try gzip decoding as for some objects, it may display exception to STDERR. And we know that object wasn't encoded as GZIP
return Base64.decode(s, Base64.DONT_GUNZIP);
} catch (Exception e) {
throw new RuntimeException(e);
}