From c09e167f3fce3030143233b14c8286493ff71a97 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Tue, 25 Aug 2026 13:41:04 -0500 Subject: [PATCH] Don't forward exception messages in unavailable statuses --- .../textsecuregcm/grpc/ErrorMappingInterceptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java index e037e3513..12e996248 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ErrorMappingInterceptor.java @@ -62,7 +62,7 @@ public class ErrorMappingInterceptor implements ServerInterceptor { } case IllegalStateException e -> { ImpossibleEvents.logImpossible(log, e.getMessage(), e); - yield GrpcExceptions.unavailable(e.getMessage()); + yield GrpcExceptions.unavailable(); } case null -> { log.error("RPC {} finished with status UNKNOWN: {}", @@ -72,7 +72,7 @@ public class ErrorMappingInterceptor implements ServerInterceptor { default -> { log.error("RPC {} finished with status UNKNOWN", call.getMethodDescriptor().getFullMethodName(), status.getCause()); - yield GrpcExceptions.unavailable(status.getCause().getMessage()); + yield GrpcExceptions.unavailable(); } }; super.close(statusException.getStatus(), statusException.getTrailers());