Skip to content

class versioning recommendations/best practices #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chrylis opened this issue Apr 30, 2015 · 2 comments
Open

class versioning recommendations/best practices #200

chrylis opened this issue Apr 30, 2015 · 2 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@chrylis
Copy link
Contributor

chrylis commented Apr 30, 2015

I'm running into issues where new class versions are changing serialVersionUIDs and throwing deserialization exceptions when a user with an existing session holding serialized data from an old class version tries to view a page. Are there any particular recommendations or best practices on how to handle incompatible serialization versions with Spring Session? Is there any manageable way to handle this in a Web application, such as at least saying "there was a problem" and explicitly expiring the session so the user can log back in?

@pcornelissen
Copy link

I think this is the same problem that is bugging me and others (see #320 for example). It should be solvable by #283, although you need to come up with a serializer on your own.

@rwinch
Copy link
Member

rwinch commented Feb 1, 2016

@pcornelissen Spring Data Redis provides Jackson2JsonRedisSerializer. Does that help?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

4 participants