From 75ced3328b523393c759a8d18a510bd7599aae74 Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Tue, 10 Dec 2024 13:40:08 +0100 Subject: [PATCH] chore: Log the correct id (#20660) (#20665) Log the correct expected id. the expected and checked id is the clientId not the syncId Co-authored-by: caalador --- .../flow/server/communication/ServerRpcHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flow-server/src/main/java/com/vaadin/flow/server/communication/ServerRpcHandler.java b/flow-server/src/main/java/com/vaadin/flow/server/communication/ServerRpcHandler.java index 291d887d4c3..d34720ef497 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/communication/ServerRpcHandler.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/communication/ServerRpcHandler.java @@ -326,7 +326,7 @@ public void handleRpc(UI ui, String message, VaadinRequest request) + "This could happen for example during login process, if concurrent requests " + "are sent to the server and one of those changes the session identifier, " + "causing an UIDL request to be rejected because of session expiration. " - + "Expected sync id: {}, got {}.", + + "Expected client id: {}, got {}.", expectedId, requestId); } else { /* @@ -342,12 +342,12 @@ public void handleRpc(UI ui, String message, VaadinRequest request) */ String messageDetails = getMessageDetails(rpcRequest); getLogger().debug("Unexpected message id from the client." - + " Expected sync id: " + expectedId + ", got " + + " Expected client id: " + expectedId + ", got " + requestId + ". Message start: " + messageDetails); throw new UnsupportedOperationException( "Unexpected message id from the client." - + " Expected sync id: " + expectedId + ", got " - + requestId + + " Expected client id: " + expectedId + + ", got " + requestId + ". more details logged on DEBUG level."); } } else {