spring-session icon indicating copy to clipboard operation
spring-session copied to clipboard

Redis session attributes not thread safe

Open imazzeii opened this issue 8 months ago • 0 comments

the following methods

org.springframework.session.data.redis.ReactiveRedisSessionRepository.createSession() org.springframework.session.data.redis.RedisSessionMapper.apply(String sessionId, Map<String, Object> map)

create a new "org.springframework.session.MapSession" backed by ReactiveRedisSessionRepository.RedisSession, so getAttributes() return an hashmap; it should be a concurrent hashmap since reactor methods could be executed in different threads

also "ReactiveRedisSessionRepository.RedisSession.delta" should be thread safe

imazzeii avatar Apr 19 '25 10:04 imazzeii