Fixed - JsonJacksonCodec unable to serialize removed attributes of Tomcat Session. #2654

pull/2655/head
Nikita Koksharov 5 years ago
parent 02befca6de
commit 6cd9b28d9c

@ -344,7 +344,7 @@ public class RedissonSession extends StandardSession {
if (updateMode == UpdateMode.AFTER_REQUEST) {
if (!removedAttributes.isEmpty()) {
topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), removedAttributes));
topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), new HashSet<>(removedAttributes)));
}
}
}

@ -344,7 +344,7 @@ public class RedissonSession extends StandardSession {
if (updateMode == UpdateMode.AFTER_REQUEST) {
if (!removedAttributes.isEmpty()) {
topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), removedAttributes));
topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), new HashSet<>(removedAttributes)));
}
}
}

@ -350,7 +350,7 @@ public class RedissonSession extends StandardSession {
if (updateMode == UpdateMode.AFTER_REQUEST) {
if (!removedAttributes.isEmpty()) {
topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), removedAttributes));
topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), new HashSet<>(removedAttributes)));
}
}
}

Loading…
Cancel
Save