spring-projects / spring-projects/spring-session

Spring session keys created in redis have different formats when running from a windows machine vs when running on a linux machine

Open
#578 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
1.9k
Forks
1.2k
Avg merge
4h 27m
Merged PRs (30d)
55

Description

Note that keys written from a spring boot spring session app running on a windows machine have these junk characters where as the keys written from an app running on a linux machine does not have these junk characters. Looks like platform specific encoding is affecting these keys.

Generated from windows machine
"\xac\xed\x00\x05t\x00<spring:session:sessions:144a6b90-f6e7-44fc-b92b-ada5671ffe36"

Generated from Linux machine
"spring:session:sessions:9263abe7-0557-4062-9209-a4248f7c97c7"
"spring:session:sessions:dd32765e-9440-4bec-9cd9-8d8fd037ce1f"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported Spring Session application on Windows and Linux, then compare the Redis session keys produced by each environment. Confirm whether the differing prefixes are caused by platform-specific serialization or encoding, and consider the issue complete when equivalent environments produce the same key format.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.